Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
What version of Go are you using (
Possibly. But I am not very clear on what exactly this issue tries to resolve. Does
Otherwise, I don't see a reason other goroutines will still wait for a callback from js.
The issue I am seeing here is not that go-routines cannot run while we wait for a callback, but that callbacks do not happen until no other go-routine runs. I just briefly looked at the runtime and might have missed something. But this is how I understand it:
changed the title
Sep 27, 2018
This is the current situation. Maybe we could extend the scheduler so it periodically gives back execution to JS, even if there are still runnable goroutines.
This somewhat depends on #26045.