Skip to content

Commit 607a8f1

Browse files
authored
Fix withUnsafeCurrentTask call
1 parent 97c3e1d commit 607a8f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/0311-task-locals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ Usually it doesn’t matter if the function was invoked without first binding th
561561
To check if the value was not bound albeit executing within a task, the following pattern can be used:
562562

563563
````swift
564-
Task.withUnsafeCurrentTask { task in
564+
withUnsafeCurrentTask { task in
565565
guard task != nil else {
566566
return "<not executing within a task>"
567567
}

0 commit comments

Comments
 (0)