mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This entrypoint is similar to swift_task_isCurrentExecutor except that it provides an ABI level option flag that enables one to configure its behavior in a backwards deployable manner via the option flag. I used this to expose at the ABI level the ability to check the current executor without crashing on failure, while preserving the current behavior of swift_task_isCurrentExecutor (which crashes on failure). I am going to use this to implement swift_task_runOnMainActor.