Skip to content

registerAsyncEvent

Registers an async event.

Import:

import { registerAsyncEvent } from 'obsidian-dev-utils/obsidian/components/async-events-component';

Signature:

function registerAsyncEvent(component: Component, eventRef: AsyncEventRef): void

Parameters:

ParameterTypeDescription
componentComponentThe component.
eventRefAsyncEventRefThe event reference.

Returns: void