Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/TaskGate/AsyncGate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public final class AsyncGate {
try await withEscalationMonitoring { () throws(Failure) -> Result in
await closeGate()

do {
do throws(Failure) {
let value = try await body()

openGate()
Expand All @@ -107,7 +107,7 @@ public final class AsyncGate {
openGate()

// unsure why the compiler believes this could be `any Error`
throw error as! Failure
throw error
}
}
}
Expand Down
Loading