Skip to content

Commit f0be1c5

Browse files
committed
Update ObservableSingleTask.swift
1 parent 83d2fa9 commit f0be1c5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Sources/async-task/task/ObservableSingleTask.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ extension Async {
6969
setState(.idle)
7070
}
7171

72-
@MainActor
73-
public func cancel(with operation: @escaping @Sendable () -> Void) {
74-
operation()
75-
cancel()
76-
}
77-
7872
/// Manages the lifecycle of an asynchronous task.
7973
/// - Parameters:
8074
/// - priority: The priority of the task, influencing its execution order. Defaults to `nil`.

0 commit comments

Comments
 (0)