Instance Propertyswift 6.0.1_Concurrency
projectedValue
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
var projectedValue: TaskLocal<Value> { get set }
Other members in extension
Type members
Instance members
var description: String
var wrappedValue: Value
func get(
) -> Value Gets the value currently bound to this task-local from the current task.
func withValue<R>(Value, operation: () throws -> R, file: String, line: UInt
) rethrows -> R Binds the task-local to the specific value for the duration of the synchronous operation.
func withValue<R>(Value, operation: () async throws -> R, isolation: isolated (any Actor)?, file: String, line: UInt
) async rethrows -> R Binds the task-local to the specific value for the duration of the asynchronous operation.