Skip to content

Commit

Permalink
gardening
Browse files Browse the repository at this point in the history
  • Loading branch information
swhitty committed Aug 18, 2024
1 parent 66ca28b commit d219dad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/IdentifiableContinuationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ private extension Actor {

func identifiableContinuation<T: Sendable>(
body: @Sendable (IdentifiableContinuation<T, Never>) -> Void,
onCancel handler: @Sendable (IdentifiableContinuation<T, Never>.ID) -> Void = { _ in }
onCancel handler: @Sendable (IdentifiableContinuation<T, Never>.ID) -> Void = { _ in }
) async -> T {
#if compiler(>=6.0)
await withIdentifiableContinuation(body: body, onCancel: handler)
Expand All @@ -259,7 +259,7 @@ private extension Actor {

func throwingIdentifiableContinuation<T: Sendable>(
body: @Sendable (IdentifiableContinuation<T, any Error>) -> Void,
onCancel handler: @Sendable (IdentifiableContinuation<T, any Error>.ID) -> Void = { _ in }
onCancel handler: @Sendable (IdentifiableContinuation<T, any Error>.ID) -> Void = { _ in }
) async throws -> T {
#if compiler(>=6.0)
try await withIdentifiableThrowingContinuation(body: body, onCancel: handler)
Expand Down

0 comments on commit d219dad

Please sign in to comment.