fix: remove TIFoundationUtils imports from TIMoyaNetworking

This commit is contained in:
Ivan Smolin 2022-04-01 14:44:21 +03:00
parent f01096dfb7
commit 692f448b46
3 changed files with 4 additions and 9 deletions

View File

@ -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() {

View File

@ -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()
}
}

View File

@ -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
}