fix: remove TIFoundationUtils imports from TIMoyaNetworking
This commit is contained in:
parent
f01096dfb7
commit
692f448b46
|
|
@ -21,9 +21,8 @@
|
|||
//
|
||||
|
||||
import Moya
|
||||
import TIFoundationUtils
|
||||
|
||||
open class BaseCancellable: Cancellable, CancellableTask {
|
||||
open class BaseCancellable: Cancellable {
|
||||
private(set) public var isCancelled = false
|
||||
|
||||
open func cancel() {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
import Moya
|
||||
import TISwiftUtils
|
||||
import TIFoundationUtils
|
||||
|
||||
public struct Cancellables {
|
||||
public static func nonCancellable() -> Cancellable {
|
||||
|
|
@ -32,8 +31,4 @@ public struct Cancellables {
|
|||
public static func scoped(scopeCancellableClosure: ScopeCancellable.ScopeCancellableClosure) -> Cancellable {
|
||||
ScopeCancellable(scopeCancellableClosure: scopeCancellableClosure)
|
||||
}
|
||||
|
||||
public static func nonCancellableTask() -> CancellableTask {
|
||||
NonCancellable()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,11 +21,12 @@
|
|||
//
|
||||
|
||||
import Moya
|
||||
import TIFoundationUtils
|
||||
|
||||
public struct NonCancellable: Cancellable, CancellableTask {
|
||||
public struct NonCancellable: Cancellable {
|
||||
public let isCancelled = true
|
||||
|
||||
public init() {}
|
||||
|
||||
public func cancel() {
|
||||
// nothing
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue