The constructor accepts config.fetcher: AsyncDataFetcher
An internal Ticker calls asyncTrigger() (fire-and-forget)
asyncTrigger() — calls await fetcher(), writes the result, notifies subscribers
asyncPull() — calls await fetcher() directly (without writing to state)
The _polling flag prevents overlapping calls with a slow fetcher
activate()/deactivate()/toggle() — control polling via the ticker
Error handling:
If fetcher() throws an exception in asyncTrigger() or asyncPull(), onError is called.
With onError provided, the exception is suppressed (polling continues).
Without onError, the exception is rethrown from asyncPull()/asyncTrigger().
When the ticker fires asyncTrigger() without onError, the rejection is unhandled
(visible in logs as unhandled promise rejection). To suppress — provide onError.
Configuration (AsyncPollingSourceTransferConfig):
fetcher: AsyncDataFetcher — async data retrieval function
Output transfer with asynchronous internal polling of a data source.
Capabilities: isOutput, isPollingSource, isAsyncPullable, isSubscribable, isAsyncTriggerable, isGate
Mechanics:
Error handling:
Configuration (AsyncPollingSourceTransferConfig):