sindresorhus/p-immediate

Multiple ticks / microtasks

Closed this issue · 2 comments

It would be helpful if we could just use pImmediate(3), which would resolve after 3 microtasks.

What's the use-case for this? I cannot think of any reasonable code doing this.

Now that I think about it I no longer have any use-cases. I used to use a similar function which resolved after 2 microtasks, but I no longer do, so this feature is unnecessary.