type _LegacySource<T> = (handler) => () => void;
A simplified source type for legacy API streams
T
handler
value
void
(): void;