Cancellable | iOS SDK | 2GIS Documentation
iOS SDK
Личный кабинет

Cancellable

A cancellation token for a running operation.

Implements: ICancellable
public init(
	cancel: @escaping () -> Void,
	release: @escaping () -> Void = {}
)
public convenience init()

Make a cancellation token that cancels nothing.

public static func ==(lhs: Cancellable, rhs: Cancellable) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods