mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
* [Concurrency] Reduce overhead of Task.yield and Task.sleep Instead of creating a new task, we create a simple job that wraps a Builtin.RawUnsafeContinuation and resumes the continuation when it is executed. The job instance is allocated on the task local allocator, meaning we don't malloc anything. * Update stdlib/public/Concurrency/Task.swift Co-authored-by: Konrad `ktoso` Malawski <konrad.malawski@project13.pl> Co-authored-by: Konrad `ktoso` Malawski <konrad.malawski@project13.pl>
36 KiB
36 KiB