UNPKG

@jmparsons/ccxt

Version:

A JavaScript / Python / PHP cryptocurrency trading library with support for 100+ exchanges

12 lines (7 loc) 299 B
// run with `node test_timeout_hang` // TODO: integrate with CI tests somehow... const { timeout } = require ('../base/functions') ;(async function () { await timeout (10000, Promise.resolve ('foo')) console.log ('Look ma, no hangs!') // should terminate the process immediately.. }) ()