mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "[Concurrency] isCanceled spelling to follow guidance"
This commit is contained in:
committed by
GitHub
parent
4988127e99
commit
80ee936a72
@@ -6,7 +6,7 @@ func asyncThrowsFunc() async throws -> Int { 42 }
|
||||
func asyncThrowsOnCancel() async throws -> Int {
|
||||
// terrible suspend-spin-loop -- do not do this
|
||||
// only for purposes of demonstration
|
||||
while await !Task.isCanceled() {
|
||||
while await !Task.isCancelled() {
|
||||
await Task.sleep(until: Task.Deadline.in(.seconds(1)))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user