swift
1bd1c468 - Concurrency: Task.startOnMainActor

Commit
2 years ago
Concurrency: Task.startOnMainActor This patch adds an SPI to run the first partial function of a MainActor asynchronous function on the MainActor synchronously. This is effectively like the asynchronous program entrypoint behavior. The first partial function is run synchronously. Following continuations are enqueued for execution like any other asynchronous function.
Author
Committer
Parents
Loading