Skip to content

Add setImmediate, setTimeout and other Timer functions#176

Open
LostAbaddon wants to merge 4 commits intoaudreyt:masterfrom
LostAbaddon:master
Open

Add setImmediate, setTimeout and other Timer functions#176
LostAbaddon wants to merge 4 commits intoaudreyt:masterfrom
LostAbaddon:master

Conversation

@LostAbaddon
Copy link

Change log:

  1. Change the console output format;
  2. Set the behaviour of nextTick just like what the node.js do;
  3. Add setImmediate function and it functions just like what in node.js;
  4. Add setTimeout, clearTimeout, setInterval, clearInterval functions and they function just like what in node.js.

Problem remains:
The new functions will be called each while loop, so the CPU usage will be high.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants