Why does Swift not resume an asynchronous perform on the identical thread it was began?

0
2


Within the introductory part of the Concurrency chapter of "The Swift Programming Language" I learn:

When an asynchronous perform resumes, Swift doesn’t make any
assure about which thread that perform will run on.

This stunned me.

Is there somebody that would shed gentle why that is and/or why Swift would not assure resuming on the identical thread?

LEAVE A REPLY

Please enter your comment!
Please enter your name here