★ wanayoo — archive 1999 https://github.com/feross/queue-microtask/issues/9Nouvelle recherche | Portail wanayoo
Skip to content
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

Accept function arguments? #9

Open
aarong opened this issue Aug 17, 2020 · 0 comments
Open

Accept function arguments? #9

aarong opened this issue Aug 17, 2020 · 0 comments

Comments

@aarong
Copy link

@aarong aarong commented Aug 17, 2020

I realize that this would be a deviation from the standard, but any interest in accepting arguments to be passed to the callback? For example...

queueMicrotask(myFunction, something) // Calls myFunction(something) as a microtask

This functionality is available with setTimeout/setImmediate and can help make code more readable.

I'm happy to submit a PR, just let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.