- Companion
- class
Value members
Concrete methods
Creates a new refreshing signal from the loader
which will be used to compute the signal's value and a stream of
events which will trigger reloading. The loader
- a cancellable future - will be every time executed in the
provided execution context. If the execution context is not provided, the default one will be used.
Creates a new refreshing signal from the loader
which will be used to compute the signal's value and a stream of
events which will trigger reloading. The loader
- a cancellable future - will be every time executed in the
provided execution context. If the execution context is not provided, the default one will be used.
- Type Params
- V
The value type of the signal and the result of the
loader
cancellable future.
- Value Params
- ec
The execution context in which the
loader
is executed.- loader
A cancellable future computing the value of the signal. It's passed by name, so if it is created in the place of argument, it will be executed for the first time only when the first subscriber function is registered in the signal, or immediately if
disableAutowiring
is used. If the execution fails or is cancelled, the value of the signal won't be updated.- refreshStream
An event stream publishing events which will trigger new executions of the
loader
. If a new event comes before the previous call toloader
finishes, the previous call will be cancelled.
- Returns
A new refreshing signal with the value of the type
V
.- See also
A version of the apply
method where the loader is a regular Scala future. It will be wrapped in a cancellable future
on the first execution.
A version of the apply
method where the loader is a regular Scala future. It will be wrapped in a cancellable future
on the first execution.