epoxy-processor / com.airbnb.epoxy.processor / Asyncable

Asyncable

interface Asyncable

Properties

coroutineScope

abstract val coroutineScope: CoroutineScope

coroutinesEnabled

abstract val coroutinesEnabled: Boolean

logger

abstract val logger: Logger

Functions

filter

open suspend fun <T : Any> Iterable<T>.filter(tag: String, parallel: Boolean = true, block: suspend (T) -> Boolean): List<T>

forEach

open suspend fun <T> Iterable<T>.forEach(tag: String, parallel: Boolean = true, block: suspend (T) -> Unit): Unit
open suspend fun <K, V> Map<K, V>.forEach(tag: String, parallel: Boolean = true, block: suspend (K, V) -> Any?): Unit

map

open suspend fun <T, R : Any> Iterable<T>.map(tag: String, parallel: Boolean = true, transform: suspend (T) -> R?): List<R>
open suspend fun <K, V, R : Any> Map<K, V>.map(tag: String, parallel: Boolean = true, transform: suspend (K, V) -> R?): List<R>

Extension Functions

mutex

fun Any.mutex(): Mutex

Inheritors

BaseProcessor

abstract class BaseProcessor : AbstractProcessor, Asyncable

ModelBuilderInterfaceWriter

class ModelBuilderInterfaceWriter : Asyncable

Creates an interface for a generated model that contains all of the valid setters for building a model in an EpoxyController. This allows us to expose the interface when building a model and hide all of the non applicable junk that shouldn't be used when building a model (eg equals/bind/toString etc)