Avatar
omochimetaru 12/2/2020 4:13 AM
This PR introduces two new entry points named withUnsafe[Throwing]Continuation() in the _Concurrency module. The two new entry points have the following types: withUnsafeContinuation: <T&...
4:14 AM
withUnsafeContinuation: <T> ((UnsafeContinuation<T>) -> Void) async -> T withUnsafeThrowingContinuation: <T> ((UnsafeThrowingContinuation<T>) -> Void) async throws -> T
4:14 AM
let x: Int = await withUnsafeContinuation { c in c.resume(123) } // x = 123
4:14 AM
beginAsync的なものが出てきた。 (edited)
4:15 AM
UnsafeContinuation という名前なのが面白いですね。