4 ms·
If it did not print 1 then you'd have a problem. Not really a race condition, just the semantics of async. You'll get the same with goroutines, javascript asyn
by ricardobeat 5y ago
If it did not print 1 then you'd have a problem.
Not really a race condition, just the semantics of async. You'll get the same with goroutines, javascript async/await, and other constructs.