2.0.0 • Published 5 years ago

@solidstudio/async-polling v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

@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();

References

https://github.com/fedealconada/async-polling