Skip to content

Commit 3daf37f

Browse files
authored
[Concurrency] Use correct type for Task.Handle in Task.sleep (swiftlang#36654)
1 parent 48b729d commit 3daf37f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/Task.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ extension Task {
477477
// Enqueue the resulting job.
478478
_enqueueJobGlobalWithDelay(duration, Builtin.convertTaskToJob(task))
479479

480-
let _ = await Handle<Int, Never>(task).get()
480+
await Handle<Void, Never>(task).get()
481481
}
482482
}
483483

0 commit comments

Comments
 (0)