wait-sync
a simple non-blocking-yet-synchronous wait(seconds)
module
Install
npm install sync-rest-client
Usage
const waitSync = ; console; // setTimeout is async - but that's ok - since// waitSync is non-blocking; ; // wait 1.5 seconds - !synchronously! console; // outputs 1, 2, and then 3 (as expected)
Test
npm run test