Where “timeout” is the signal you are waiting for.
yield could be used to stop a method, and then continue where it left off. can you not do that with await? await seems like it will just retrigger the same method starting from the beginning.
WolframR | 2022-07-17 05:20
FYI, this example is a bit misleading - waiting for 1000 waits for 1000 seconds! You want to wait for 1.0 (one second) instead.