Creates a PollingSourceTransfer — an output transfer with internal polling.
Capabilities: Pullable, Subscribable, Triggerable, Gate
— configuration (fetcher, interval, activated, onError)
const polling = createPollingSourceTransfer<number>({ fetcher: () => Date.now(), interval: 1000, activated: true});polling.subscribe(x => console.log(x)); Copy
const polling = createPollingSourceTransfer<number>({ fetcher: () => Date.now(), interval: 1000, activated: true});polling.subscribe(x => console.log(x));
Creates a PollingSourceTransfer — an output transfer with internal polling.
Capabilities: Pullable, Subscribable, Triggerable, Gate