We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
withUnsafeCurrentTask
1 parent 97c3e1d commit 607a8f1Copy full SHA for 607a8f1
proposals/0311-task-locals.md
@@ -561,7 +561,7 @@ Usually it doesn’t matter if the function was invoked without first binding th
561
To check if the value was not bound albeit executing within a task, the following pattern can be used:
562
563
````swift
564
-Task.withUnsafeCurrentTask { task in
+withUnsafeCurrentTask { task in
565
guard task != nil else {
566
return "<not executing within a task>"
567
}
0 commit comments