Skip to content

Commit de0b23e

Browse files
committed
Rename method
1 parent b5f31f9 commit de0b23e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/IdentifiableContinuation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public func withIdentifiableContinuation<T>(
8686
/// - handler: Cancellation closure executed when the current Task is cancelled. Handler is always called _after_ the body closure is compeled.
8787
/// - Returns: The value continuation is resumed with.
8888
@_unsafeInheritExecutor
89-
public func withThrowingIdentifiableContinuation<T>(
89+
public func withIdentifiableThrowingContinuation<T>(
9090
isolation: isolated some Actor,
9191
body: (IdentifiableContinuation<T, any Error>) -> Void,
9292
onCancel handler: @Sendable (IdentifiableContinuation<T, any Error>.ID) -> Void

Tests/IdentifiableContinuationTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private actor Waiter<T, E: Error> {
177177
func makeTask(delay: TimeInterval = 0, onCancel: Result<T, E>) -> Task<T, any Error> where E == any Error {
178178
Task {
179179
await Task.sleep(seconds: delay)
180-
return try await withThrowingIdentifiableContinuation(isolation: self) {
180+
return try await withIdentifiableThrowingContinuation(isolation: self) {
181181
addContinuation($0)
182182
} onCancel: { id in
183183
Task { await self.resumeID(id, with: onCancel) }
@@ -241,6 +241,6 @@ private extension Actor {
241241
body: @Sendable (IdentifiableContinuation<T, any Error>) -> Void,
242242
onCancel handler: @Sendable (IdentifiableContinuation<T, any Error>.ID) -> Void = { _ in }
243243
) async throws -> T {
244-
try await withThrowingIdentifiableContinuation(isolation: self, body: body, onCancel: handler)
244+
try await withIdentifiableThrowingContinuation(isolation: self, body: body, onCancel: handler)
245245
}
246246
}

0 commit comments

Comments
 (0)