You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am embedding Janet in my application. I want to use the event loop to process scheduled tasks, but I don't want to block the main thread with janet_loop. I have my own loop that does other work in the main thread, as well as interacting with Janet. I can create fibers and continuously call janet_continue on them, but fibers spawned from Janet (say, a TCP server) won't ever make progress. I can run Janet in its own thread, but then I have to marshal everything in and out. I guess I'd like to be able to call janet_loop1 whenever I want. Any suggestions?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am embedding Janet in my application. I want to use the event loop to process scheduled tasks, but I don't want to block the main thread with
janet_loop. I have my own loop that does other work in the main thread, as well as interacting with Janet. I can create fibers and continuously calljanet_continueon them, but fibers spawned from Janet (say, a TCP server) won't ever make progress. I can run Janet in its own thread, but then I have to marshal everything in and out. I guess I'd like to be able to calljanet_loop1whenever I want. Any suggestions?Beta Was this translation helpful? Give feedback.
All reactions