How to Use
1. Open this file in your nearest browser (Chrome, Firefox, IE, etc.).
2. See the logs in console (e.g., in Chrome Developer Tools > console, Dock side > Dock to right).
3. All test of examples are executed one by one, including async tasks.
Enjoy!
What's Tas
Tas makes the code structure clear. Tas executes async tasks as sync tasks, avoiding callback hell / callback pyramid, and can be used in Node.js and in browsers. "Tas" is the abbreviation of "tasks".
In Tas, we can insert or remove async tasks anywhere in any module without having to adjust the code structure elsewhere, all of them are executed in the order we write, just like the sync tasks, better than Promise and generator / yield, and the tasks execution order is more reasonable.
Tas performs more than 3 million sync tasks or 1 million async tasks per second concurrently, faster than native Promise (Benchmark). With Tas, we can write server code with clear code structure and excellent performance in Node.js.
Learn more about Tas:
https://github.com/tasjs/tas