CancellableCollector

A collection of OmhCancellable that allows to cancel them all in a single operation. This is a util class for handling the OmhTask returns.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun addCancellable(cancellable: OmhCancellable?)

Adds a cancelable object to the collections. This cancellable can be a nullable for better compatibility with the OmhTask class.

Link copied to clipboard
fun clear()

Cancels each OmhCancellable and clears the collection.