Package-level declarations

Types

Link copied to clipboard
abstract class BaseOmhTask<T> : IOmhTask<T>
Link copied to clipboard

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

Link copied to clipboard
interface IOmhTask<T>
Link copied to clipboard
fun interface OmhCancellable
Link copied to clipboard
fun interface OmhErrorListener
Link copied to clipboard
fun interface OmhSuccessListener<T>
Link copied to clipboard
open class OmhTask<T>(task: suspend () -> T, coroutineContext: CoroutineContext = Dispatchers.IO + SupervisorJob(), customScope: CoroutineScope = CoroutineScope(context = coroutineContext)) : BaseOmhTask<T>

A wrapper class for the async library that's used in a specific OMH implementation. This creates a layer of abstraction between the developer and the library that doesn't force the preferred async library on them.