var done = (() -> Void)? func a() async { await withUnsafeContinuation { continuation in done = continuation.resume } // A } func b() { done?.() // B done = nil }