Avatar
既存の挙動の変更するという話ですと、Task.initTask.detachedFailureNeverではない場合に、@ discardableResultを消すという話も出ていますね。 https://forums.swift.org/t/pitch-improved-error-handling-in-unstructured-task-initializers/74826
Hello all! @ktoso and I would like to propose changes to the Task API to adopt typed throws and make it more difficult to ignore thrown errors accidentially. The motivation for adopting typed throws can be clearly illustrated with a code example: let task = Task { throw MyError.somethingBadHappened } do { _ = try await task.value } catch...
👀 1