File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -416,20 +416,20 @@ extension DiscardingTaskGroup: Sendable { }
416
416
///
417
417
/// Generally, this suits the typical use-cases of a
418
418
/// discarding task group well, however, if you wanted to prevent specific
419
- /// errors from cancelling the group one should catch them inside the child
419
+ /// errors from cancelling the group one should catch them inside the child
420
420
/// task's body like this:
421
421
///
422
422
/// ```
423
423
/// try await withThrowingDiscardingTaskGroup { group in
424
- /// group.addTask {
424
+ /// group.addTask {
425
425
/// do {
426
426
/// try boom(1)
427
427
/// } catch is HarmlessError {
428
428
/// return
429
429
/// }
430
430
/// }
431
- /// group.addTask {
432
- /// try boom(2, after: .seconds(5))
431
+ /// group.addTask {
432
+ /// try boom(2, after: .seconds(5))
433
433
/// }
434
434
/// }
435
435
/// ```
You can’t perform that action at this time.
0 commit comments