Skip to content
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

Release 2.0.0

Compare
Choose a tag to compare
@surol surol released this 22 Aug 06:23
· 800 commits to master since this release

Changes

The primary change is an ability to update the provided context values. The existing context key implementations still construct values at most once and never update them.

The value updates could be achieved with the use of value seeds mechanism. The value source providers are collected by key-specific seeder (one per context registry). This seeder is used then to construct a value seed (one per context). This seed is used then to construct (grow) a context value associated with the key.

The value is still cached in context, but it may provide an interface for its updates notification. E.g. it can be an EventKeeper from fun-events, which is the case for SingleContextUpKey and MultiContextUpKey implementations. The latter are updated by their seeder when a new value provider is added or existing one removed.