Hard work on the part of the various Swift teams, mainly @Douglas_Gregor AFAICT. You can read more about it in the other thread: Swift concurrency back deployment.
Essentially, they built an implementation of the concurrency runtime for older OSes, as well as ways to bundle a compatibility library into binaries that provides the missing pieces.