Skip to content

[Concurrency] fix documentation typos in TaskGroup.swift #82291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stdlib/public/Concurrency/TaskGroup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
/// return collected
///
/// Awaiting on an empty group
/// immediate returns `nil` without suspending.
/// immediately returns `nil` without suspending.
///
/// You can also use a `for`-`await`-`in` loop to collect results of a task group:
///
Expand Down Expand Up @@ -423,7 +423,7 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
///
/// At the start of the body of a `withTaskGroup(of:returning:body:)` call,
/// the task group is always empty.
/// It`s guaranteed to be empty when returning from that body
/// It's guaranteed to be empty when returning from that body
/// because a task group waits for all child tasks to complete before returning.
///
/// - Returns: `true` if the group has no pending tasks; otherwise `false`.
Expand Down