advise On
abstract fun adviseOn( lifetime: Lifetime, scheduler: IScheduler, handler: (T) -> Unit)
Content copied to clipboard
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.