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

Source Location: packages/core/src/source.ts#L69

Signature

interface End {
readonly type: EndType
}

End - Variable

Source Location: packages/core/src/source.ts#L205

Signature

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

Source Location: packages/core/src/source.ts#L40

Signature

type EndType = 2

EndType - Variable

Source Location: packages/core/src/source.ts#L44

Signature

var EndType: EndType