Avatar
さっきkoherさんのAsk the speakerの時に話に出ていたResultinit async、こんな感じですかね?🤔 https://forums.swift.org/t/swift-concurrency-feedback-wanted/49336/105 (edited)
Result could be extended with an async initialiser — something like this: extension Result where Failure == Error { init(awaiting task: () async throws -> Success) async { do { self = .success(try await task()) } catch { self = .failure(error) } } } self.taskHandle = async { self.result = await Result { try aw...
👀 2