mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
4f1a0b7016
The Embedded Swift concurrency library needs a way to exit the program at the end of async main. The existing implementation calls through a _swift_exit() function to the POSIX/C exit(). Enshrine _swift_exit() as part of the Platform Abstraction Layer, with the same signature (albeit in C), and implement it in the PAL-on-POSIX library as a call through to exit().