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
Property | Type | Description |
---|---|---|
abort | () => void | Cancels the ongoing event, stopping its propagation or execution. |