Constant sources
Last updated
Was this helpful?
Last updated
Was this helpful?
Location: main sources module.
A constant source returns a preconfigured settings node and never issues any updates.
A lazy constant source does the same but defers the node acquisition until first subscription:
Errors in the provided delegate are propagated via (null, error)
notification. It's guaranteed to execute not more than once.
Constant sources are handy for unit testing and may serve as base classes for custom sources.