File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -522,15 +522,13 @@ extension Task {
522
522
// Create the asynchronous task future, it will do nothing, but simply serves
523
523
// as a way for us to yield our execution until the executor gets to it and
524
524
// resumes us.
525
- // FIXME: This should be an empty closure instead. Returning `0` here is
526
- // a workaround for rdar://74957357
527
525
// TODO: consider if it would be useful for this task to be a child task
528
- let ( task, _) = Builtin . createAsyncTaskFuture ( flags. bits, nil , { return 0 } )
526
+ let ( task, _) = Builtin . createAsyncTaskFuture ( flags. bits, { } )
529
527
530
528
// Enqueue the resulting job.
531
529
_enqueueJobGlobal ( Builtin . convertTaskToJob ( task) )
532
530
533
- let _ = await Handle < Int , Never > ( task) . get ( )
531
+ let _ = await Handle < Void , Never > ( task) . get ( )
534
532
}
535
533
}
536
534
You can’t perform that action at this time.
0 commit comments