3 ms·
> you will see that nothing outside of that loop will ever be executed Yes, that is true. Maybe I wasn't clear, but I tried to point out that every "thread of
by tantalor 15y ago
> you will see that nothing outside of that loop will ever be executed
Yes, that is true. Maybe I wasn't clear, but I tried to point out that every "thread of control" must yield as soon as possible to the event loop in JavaScript.
Since Go is not single-threaded, a real goroutine doesn't need to yield.