2.0.0 • Published 5 years ago
@solidstudio/async-polling v2.0.0
@solidstudio/async-polling
An easy way to run reliable polling without messing with setTimeout.
This package is used by the Solid event processor to manage the polling.
Usage
import { AsyncPolling } from '@solidstudio/async-polling'
new AsyncPolling(function (end) {
// Do whatever you want.
// Then notify the polling when your job is done:
end();
// This will schedule the next call.
}, 3000).run();