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 Source Location: packages/core/src/source.ts#L69 Signature Copy 1 interface End { 2 readonly type : EndType 3 }
Source Location: packages/core/src/source.ts#L205 Signature Copy
Example Usage Copy 1 function onEvent ( event : Event < unknown >): void { 2 console . log ( event . type ) ; 3 }; 4 const sink = Sink (onEvent) ; 5 sink (End) ; // This disposes the sink, then calls `onEvent` above. 6 // Logs: 7 // `${EndType}`
Source Location: packages/core/src/source.ts#L40 Signature Copy
Source Location: packages/core/src/source.ts#L44 Signature Copy
← ThrowSource→