UNPKG

webworker-threads

Version:

Lightweight Web Worker API implementation with native threads

14 lines (11 loc) 264 B
function fibo (n) { return n > 1 ? fibo(n - 1) + fibo(n - 2) : 1; } (function fiboLoop () { process.stdout.write(fibo(35).toString()); setImmediate(fiboLoop); })(); (function spinForever () { process.stdout.write("."); setImmediate(spinForever); })();