UNPKG

ccxt-js

Version:

The node.js portion of original ccxt cryptocurrency trading library with support for 100+ exchanges. It reduces the size of the library from 40MB to 8MB

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.. }) ()