Skip to main content

ICRNEvent

Electron APIs / CRN / ICRNEvent

Used to create cancellable or abortable event.

Example

const event: ICRNEvent = createCancelableEvent();

// Later in the flow
if (shouldCancel) {
event.abort();
}

Properties

PropertyTypeDescription
abort() => voidCancels the ongoing event, stopping its propagation or execution.