How to await for one task on two different threads?
问题 Can I await on a Task that was created on a different thread? For example: ... CurrentIteration = Execute(); // returns Task await CurrentIteration; ... And then, on another thread: ... await CurrentIteration; ... Will the second thread wait for method Execute to finish executing? If it will, will I be able to re-use CurrentIteration for the same purpose in the second thread, given that I re-run CurrentIteration = Execute(); // returns Task await CurrentIteration; On the first thread? I tried