Skip to content

Commit 73ea74d

Browse files
authored
Merge pull request #2257 from MahdiBM/patch-2
Fix `withUnsafeCurrentTask` call
2 parents 38e49f9 + 607a8f1 commit 73ea74d

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)