Skip to content

Conversation

@kastiglione
Copy link

@kastiglione kastiglione commented Mar 28, 2025

Don't show future or childTask flags in a Task's summary.

First, future is not an official term in Swift Concurrency. There's undetermined value
in showing this. From my reading of the concurrency runtime, in non-embedded Swift all
tasks have the flag isFuture. For embedded Swift it's unset for all tasks.

Second, child tasks are already indicated with either groupChildTask, or
asyncLetTask.

Both values are still available on demand, ex p task.isFuture or p task.isChildTask.

This change is to reduce the quantity of data in the summary, because a subsequent
change will add the Task's name in its summary.

Don't show `future` or `childTask` in a Task's summary.

First, `future` is not an official term in Swift Concurrency. There's undetermined value
in showing this. From my reading of the concurrency runtime, in non-embedded Swift all
tasks have the flag `isFuture`. For embedded Swift all tasks do not have the flag set.

Second, child tasks are already indicated with either `groupChildTask`, or
`asyncLetTask`.

Both values are available on demand, ex `p task.isFuture` or `p task.isChildTask`.

This change is to reduce the quantity of data in the summary, because a subsequent
change will include the Tasks name in its summary.
@kastiglione kastiglione requested a review from a team as a code owner March 28, 2025 22:40
@kastiglione
Copy link
Author

@swift-ci test

@felipepiovezan
Copy link

looks like an appropriate choice to me!

@kastiglione kastiglione merged commit bc6899f into stable/20240723 Mar 31, 2025
3 checks passed
@kastiglione kastiglione deleted the dl/lldb-Exclude-redundant-task-flags-from-summary branch March 31, 2025 14:18
kastiglione added a commit that referenced this pull request Apr 4, 2025
Don't show `future` or `childTask` flags in a Task's summary.

First, `future` is not an official term in Swift Concurrency. There's undetermined value
in showing this. From my reading of the concurrency runtime, in non-embedded Swift all
tasks have the flag `isFuture`. For embedded Swift it's _unset_ for all tasks.

Second, child tasks are already indicated with either `groupChildTask`, or
`asyncLetTask`.

Both values are still available on demand, ex `p task.isFuture` or `p task.isChildTask`.

This change is to reduce the quantity of data in the summary, because a subsequent
change will add the Task's name in its summary.


(cherry-picked from commit bc6899f)
kastiglione added a commit that referenced this pull request Apr 4, 2025
Don't show `future` or `childTask` flags in a Task's summary.

First, `future` is not an official term in Swift Concurrency. There's undetermined value
in showing this. From my reading of the concurrency runtime, in non-embedded Swift all
tasks have the flag `isFuture`. For embedded Swift it's _unset_ for all tasks.

Second, child tasks are already indicated with either `groupChildTask`, or
`asyncLetTask`.

Both values are still available on demand, ex `p task.isFuture` or `p task.isChildTask`.

This change is to reduce the quantity of data in the summary, because a subsequent
change will add the Task's name in its summary.


(cherry-picked from commit bc6899f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants