APIRequestExecutor
public class APIRequestExecutor
APIRequestExecutor is responsible for scheduling and executing the network requests. It can be used to stop / start all network activity if necessary.
-
APIRequestExecutor is a singleton. Use this to access its only instance.
Declaration
Swift
public static let sharedInstance: APIRequestExecutor
-
Returns true if the executor is not stopped.
Declaration
Swift
public func isExecutingRequests() -> Bool
-
Stops the executor. Cancels any running network requests. New requests will not run while the executor is stopped. Any queued requests are discarded as well.
Declaration
Swift
public func stop()
-
Resumes running the executor.
Declaration
Swift
public func start()