Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I believe that any time you await/then you wind up going back to the event loop. It's cheap ish but definitely not free. This is, of course, to make the behavior more predictable, but in this case it might be undesirable. Unfortunately, I don't think there's any obvious way around it. It can sorta be done with vanilla callbacks, but that takes you out of the async/promises world.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: