Interface

CancellationHandle

Implementations of this interface can be used to cancel an ongoing operation or unregister a listener by calling cancel.

Source set: Common
public interface CancellationHandle

Implementations of this interface can be used to cancel an ongoing operation or unregister a listener by calling cancel.

Functions

cancel

Source set: Common
public fun cancel()

Cancels the operation that this handle was returned for. Implementations of this method should be idempotent. Callers should be able to cancel the same handle a second time without causing any externally visible effects.

Members

Companion

Source set: Common
public companion object
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: