After await, it doesn't return to the main thread

I don’t think it’s a data race issue, but if the main thread has special significance on the target platform like it does on Darwin, exiting it by calling dispatchMain() could certainly cause other problems.

2 Likes