Skip to content

Add setImmediate, setTimeout and other Timer functions #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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