invoke

abstract operator fun invoke(listener: (e: T) -> Unit): Disposable(source)

A function that represents an event to which you subscribe by calling it with a listener function as argument.

Parameters

listener

The listener function will be called when the event happens.