20 ms·
According to http://code.google.com/p/try-catch-finally/wiki/GoInternals http://code.google.com/p/try-catch-finally/wiki/GoInternals it does. The magic trick i
by btilly 14y ago
According to http://code.google.com/p/try-catch-finally/wiki/GoInternals http://code.google.com/p/try-catch-finally/wiki/GoInternals it does.
The magic trick is that it runs the scheduler just before the blocking call, and if need be it will spawn a new thread to make the blocking call in. That way the thread that thinks it made the blocking call is free to continue running other goroutines.