CancelToken

open class CancelToken

A token for requesting the cancellation of asynchronous requests.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun addListener(listener: CancellationListener)

Add a listener that will be notified if this token is cancelled.

Link copied to clipboard
open fun cancel()

Cancel all asynchronous requests using this token.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#cancelToken RequestOptions.cancelToken}.