File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -917,10 +917,10 @@ You have complete flexibility to manage unstructured tasks
917
917
in whatever way your program needs,
918
918
but you're also completely responsible for their correctness.
919
919
To create an unstructured task that runs on the current actor,
920
- call the [ ` Task.init(priority:operation:) ` ] ( https://developer.apple.com/documentation/swift/task/3856790-init ) initializer.
920
+ call the [ ` Task.init(priority:operation:) ` ] [ ] initializer.
921
921
To create an unstructured task that's not part of the current actor,
922
922
known more specifically as a * detached task* ,
923
- call the [ ` Task.detached(priority:operation:) ` ] ( https://developer.apple.com/documentation/swift/task/3856786-detached ) class method.
923
+ call the [ ` Task.detached(priority:operation:) ` ] [ ] class method.
924
924
Both of these operations return a task that you can interact with ---
925
925
for example, to wait for its result or to cancel it.
926
926
@@ -935,6 +935,9 @@ let result = await handle.value
935
935
For more information about managing detached tasks,
936
936
see [ ` Task ` ] ( https://developer.apple.com/documentation/swift/task ) .
937
937
938
+ [ `Task.init(priority:operation:)` ] : https://developer.apple.com/documentation/swift/task/init(priority:operation:)-7f0zv
939
+ [ `Task.detached(priority:operation:)` ] : https://developer.apple.com/documentation/swift/task/detached(priority:operation:)-d24l
940
+
938
941
<!--
939
942
TODO Add some conceptual guidance about
940
943
when to make a method do its work in a detached task
You can’t perform that action at this time.
0 commit comments