Creates a DebounceTransfer — a reactive channel with debounced emission to subscribers.
Capabilities: Pushable, Subscribable
— configuration (delay)
const channel = createDebounceTransfer<number>({ delay: 200 });channel.subscribe(x => console.log(x));channel.push(1); // resets the timerchannel.push(2); // resets the timer// after 200 ms of silence, subscribers receive 2 Copy
const channel = createDebounceTransfer<number>({ delay: 200 });channel.subscribe(x => console.log(x));channel.push(1); // resets the timerchannel.push(2); // resets the timer// after 200 ms of silence, subscribers receive 2
Creates a DebounceTransfer — a reactive channel with debounced emission to subscribers.
Capabilities: Pushable, Subscribable