Ios sdk reference Future | 2GIS Documentation

Future

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

A function to create a new subscription.

canceller
Canceller

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

Methods