4 ms·
Goroutines are not threads. Async await behind the scenes uses threads.
by tigershark 8y ago
Goroutines are not threads.
Async await behind the scenes uses threads.
- wallstop 8y agoDoes it? https://blog.stephencleary.com/2013/11/there-is-no-thread.html https://blog.stephencleary.com/2013/11/there-is-no-thread.ht...
- tigershark 8y agoIn that case and in some others it doesn’t, but in general it does: https://stackoverflow.com/questions/17661428/async-stay-on-the-current-thread https://stackoverflow.com/questions/17661428/async-stay-on-t... Probably it makes sense to say that async await can try to use a continuation passing style or run on a different thread because there is no actual guarantee that it will use one or the other.