once

external fun <T> once(event: EventName, handler: EventCallback<T>, options: Options = definedExternally): ERROR CLASS: Symbol not found for js.promise.Promise<{tauri/apps/api/UnlistenFn=} kotlin/Function0<kotlin/Unit>>(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.