-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
ConcurrencуArea → standard library: The `Concurrency` module under the standard library umbrellaArea → standard library: The `Concurrency` module under the standard library umbrellabugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.documentationinaccurate infoBug → documentation: Inaccurate infoBug → documentation: Inaccurate infostandard libraryArea: Standard library umbrellaArea: Standard library umbrella
Description
Previous ID | SR-15873 |
Radar | None |
Original Reporter | @ole |
Type | Bug |
Environment
This is the state of the documentation at https://developer.apple.com/documentation/swift/3815003-withunsafecurrenttask on 2022-02-16 (Swift 5.5).
Additional Detail from JIRA
Votes | 0 |
Component/s | Standard Library |
Labels | Bug |
Assignee | None |
Priority | Medium |
md5: d028dc708a057ae6830a4808d7cf2fd3
Issue Description:
The documentation for withUnsafeCurrentTask
says: (edit: fixed link)
Instead, use the
task
property ofUnsafeCurrentTask
to access an instance ofTask
that you can store long-term and interact with outside of the closure body.
Problem: UnsafeCurrentTask
has no public task
property (and shouldn't as far as I can tell), so the documentation is incorrect.
Metadata
Metadata
Assignees
Labels
ConcurrencуArea → standard library: The `Concurrency` module under the standard library umbrellaArea → standard library: The `Concurrency` module under the standard library umbrellabugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.documentationinaccurate infoBug → documentation: Inaccurate infoBug → documentation: Inaccurate infostandard libraryArea: Standard library umbrellaArea: Standard library umbrella