once

external fun <T> once(event: EventName, handler: EventCallback<T>, options: Options = definedExternally): Promise<UnlistenFn>(source)

Listens once to an emitted event to any {@link EventTarget|target}.

Since

1.0.0

Parameters

event

Event name. Must include only alphanumeric characters, -, /, : and _.

handler

Event handler callback.

options

Event listening options.