@ciscospark/common-timers
Timer wrappers for the Cisco Webex JS SDK. See https://webex.github.io/spark-js-sdk/
Install
npm install --save @ciscospark/common-timers
Usage
Works just likesetTimeout
and setInterval
, but doesn't wedge a node process open.import {safeSetTimeout, safeSetInterval} from '@ciscospark/common-timers';
const timer = safeSetTimeout(() => {}, 1000);
const interval = safeSetInterval(() => {}, 1000);