five icon indicating copy to clipboard operation
five copied to clipboard

five.async usage in browser

Open nikeee opened this issue 10 years ago • 4 comments

The current implementation of five.async uses process.nextTick, which is a nodejs specific API. This won't work in a browser apparently. I'd fix this by checking if there is a process variable. I could make a PR soon.

nikeee avatar May 23 '15 03:05 nikeee

If you need that in the browser, and it's not currently possible, feel free to put a PR in!

shackpank avatar May 24 '15 19:05 shackpank

Indeed, it's pretty essential for the scalability of my application.

nikeee avatar May 25 '15 17:05 nikeee

This method could return a promise.

mbixby avatar May 26 '15 16:05 mbixby

I think we can now assume a fair amount of promise support. PR still welcomed?

nikeee avatar Oct 02 '19 02:10 nikeee