Future | iOS SDK | 2GIS Documentation
iOS SDK

Future

public init(
	subscriber: @escaping Subscriber,
	canceller: @escaping Canceller = {}
)
Parameters
subscriber
Subscriber

Creates a new subscription.

canceller
Canceller

Releases all associated resources. It must be called at some point after the subscription has fired (e.g. in deinit).

public static func ==(lhs: Future<Value>, rhs: Future<Value>) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods