fastzalgo
Makes a function asynchronous by wrapping it inside process.nexTick
.
Similar to dezalgo but almost 3 times faster:
runDezalgo*10000000: 7553ms
runFastzalgo*10000000: 2845ms
The main difference from dezalgo is that you must call the callback only once.
Usage
'use strict' const zalgo = const print = consolelogconst asyncPrint = // Prints://// this happens before// this happens after
Install
npm i fastzalgo -g
License
MIT