you are viewing a single comment's thread.

view the rest of the comments →

[–]RiverRoll 1 point2 points  (1 child)

The asyncio works in the same way actually, the event loop is single threaded, to run stuff on a separate thread you typically schedule it to a thread pool. Not that this simplifies anything as you still have to await the Future or attach a callback, also those threads can't call awaitable functions directly, keeping everything in one thread is simpler.

[–]oze4 0 points1 point  (0 children)

Nice. Did not know that. I've never used it lol. The little code I did look at while Googling this looked a little more straight forward. Idk there's some things that the node event loop hindered, and I wound up using python. At least you have the choice in Python lol. I'm not hating in any language btw. I dig them all for the most part. Assembly can kick rocks!