IAsyncSignal

interface IAsyncSignal<T> : ISignal<T> , IAsyncSource<T>

Functions

Link copied to clipboard
abstract fun advise(lifetime: Lifetime, handler: (T) -> Unit)

Adds an event subscription. Every time an event occurs, the handler is called, receiving an instance of the event. The subscription is removed when the given lifetime expires.

Link copied to clipboard
abstract fun adviseOn(    lifetime: Lifetime,     scheduler: IScheduler,     handler: (T) -> Unit)

Adds an event subscription. Every time an event occurs, the handler is called on the given scheduler, receiving an instance of the event. The subscription is removed when the given lifetime expires.

Link copied to clipboard
abstract fun fire(value: T)

Properties

Link copied to clipboard
abstract val changing: Boolean
Link copied to clipboard
abstract var scheduler: IScheduler?