Skip to content

Commit 83d2fa9

Browse files
committed
update
1 parent 63e2e39 commit 83d2fa9

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

Sources/async-task/protocol/IAsyncTask.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ public protocol IAsyncTask: AnyObject, Sendable {
6464
/// This method stops the task immediately, resets the task reference, and updates the state to `.idle`.
6565
/// If no task is running, calling this method has no effect.
6666
func cancel()
67-
68-
func cancel(with operation : @escaping @Sendable () -> Void)
6967

7068
/// Starts an asynchronous operation without requiring input.
7169
///

Sources/async-task/task/SingleTask.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ extension Async {
6868
}
6969
setState(.idle)
7070
}
71-
72-
@MainActor
73-
public func cancel(with operation: @escaping @Sendable () -> Void) {
74-
operation()
75-
cancel()
76-
}
7771

7872
/// Starts an asynchronous task with the specified operation.
7973
/// - Parameters:

0 commit comments

Comments
 (0)