Skip to main

End

End

An End event represents the "end" of a Source, and has no additional properties. After a Sink receives an End event, it will be disposed and will not take any more events.

See Also

End - Interface

Signature - source.ts#L69

interface End {
    readonly type: EndType
}

End - Variable

Signature - source.ts#L205

var End: End

Example Usage

function onEvent(event: Event<unknown>): void {
    console.log(event.type);
};
const sink = Sink(onEvent);
sink(End); // This disposes the sink, then calls `onEvent` above.
// Logs:
// `${EndType}`

EndType

EndType - Type

Signature - source.ts#L40

type EndType = 2

EndType - Variable

Signature - source.ts#L44

var EndType: EndType