That got me excited, but my quest ended at _getCurrentAsyncTask; I couldn't dive any deeper. ![]()
// Task.swift ... // ==== Internal --------------------------------------------------------------- @available(SwiftStdlib 5.1, *) @_silgen_name("swift_task_getCurrent") public func _getCurrentAsyncTask() -> Builtin.NativeObject?
However, as @ktoso pointed out, the current execution context is the key to understanding how the static members of Task do their jobs.