Attributes
Members list
Value members
Concrete methods
Easy helper for custom signals. See CustomSignalSource for docs.
Easy helper for custom signals. See CustomSignalSource for docs.
Provide start
and stop
callbacks that will be called when the signal is started and stopped. E.g. create some resource on start, clean it on stop.
The arguments to start
are functions. Call them to do things like update the signal's value, read its current value, or get some info:
getStartIndex
returns 1
the first time the signal is started, and is incremented every time it is started again after being stopped.
getIsStarted
is a function that you can call any time, including after some delay, to check if the signal is still started, e.g. if you don't want to update the signal's value if the signal is stopped.
Value parameters
- stop
-
MUST NOT THROW!
Attributes
The signal will start with None
, even if the future is already resolved. Once the future resolves (or after a minimal async delay if it's already resolved), the signal's value will be updated to the future's resolved value.
The signal will start with None
, even if the future is already resolved. Once the future resolves (or after a minimal async delay if it's already resolved), the signal's value will be updated to the future's resolved value.
Attributes
The signal will start with the provided initial
value, even if the future is already resolved. Once the future resolves (or after a minimal async delay if it's already resolved), the signal's value will be updated to the future's resolved value.
The signal will start with the provided initial
value, even if the future is already resolved. Once the future resolves (or after a minimal async delay if it's already resolved), the signal's value will be updated to the future's resolved value.
Attributes
The signal will start with None
, even if the promise is already resolved. Once the promise resolves (or after a minimal async delay if it's already resolved), the signal's value will be updated to the promise's resolved value.
The signal will start with None
, even if the promise is already resolved. Once the promise resolves (or after a minimal async delay if it's already resolved), the signal's value will be updated to the promise's resolved value.
Attributes
The signal will start with the provided initial
value, even if the promise is already resolved. Once the promise resolves (or after a minimal async delay if it's already resolved), the signal's value will be updated to the promise's resolved value.
The signal will start with the provided initial
value, even if the promise is already resolved. Once the promise resolves (or after a minimal async delay if it's already resolved), the signal's value will be updated to the promise's resolved value.
Attributes
Implicits
Implicits
Provides methods on Signal: splitBoolean
Provides methods on Signal: splitBoolean
Attributes
Provides methods on Signal: combine, combineWith, withCurrentValueOf, sample
Provides methods on Signal: combine, combineWith, withCurrentValueOf, sample
Attributes
Provides signal-specific debug* methods: debugSpyInitialEval, debugLogInitialEval, debugBreakInitialEval
Provides signal-specific debug* methods: debugSpyInitialEval, debugLogInitialEval, debugBreakInitialEval
Attributes
Provides methods on Signal: splitEither
Provides methods on Signal: splitEither
Attributes
Provides methods on Signal: splitOption
Provides methods on Signal: splitOption
Attributes
Provides methods on Signal companion object: combine, combineWith
Provides methods on Signal companion object: combine, combineWith
Attributes
Provides methods on Signal: splitOne
Provides methods on Signal: splitOne
Attributes
Provides methods on Signal: split, splitByIndex
Provides methods on Signal: split, splitByIndex
Attributes
Provides methods on Signal: splitStatus
Provides methods on Signal: splitStatus
Attributes
Provides methods on Signal: splitTry
Provides methods on Signal: splitTry