Skip to main content

Subscriber

Overview#

Invokes an execution of an observable and registers a handler for notifications it will emit.

Methods#

subscribe#

subscribe<T>(handler: (value: T) => void): Unsubscriber

Parameters:

NameTypeDescription
handlerTCallback invoked whenever the event is emitted

Returns: Unsubscriber

Was this article helpful?