| ▲ | Kinrany 3 hours ago | |||||||||||||||||||||||||||||||
And it doesn't actually prevent concurrency. | ||||||||||||||||||||||||||||||||
| ▲ | gf000 3 hours ago | parent [-] | |||||||||||||||||||||||||||||||
Sure, but concurrent != parallel. You can't have data races with a single thread of execution - a while loop writing i=0 or i=1 on each iteration is not a data race. Two async functions doing so is not a data race either. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||