current

A ServiceContext is automatically propagated through task-local storage. This API enables binding a top-level ServiceContext and implicitly passes it to child tasks when using structured concurrency.

ServiceContext.swift:236
iOS
13.0+
macOS
10.15+
tvOS
13.0+
watchOS
6.0+
static var current: ServiceContext? { get }