ChainedRunnablePartThen

class ChainedRunnablePartThen<T, R>(runnable: (T) -> R, sync: Boolean, previous: ChainedRunnablePart<*, T>) : ChainedRunnablePart<T, R>

Functions

execute
Link copied to clipboard
open override fun execute()
Begins execution of this chained runnable.
executeCatching
Link copied to clipboard
inline fun <E : Exception> executeCatching(exceptionSync: Boolean = true, noinline exceptionHandler: (E) -> Unit? = null)
Begins execution of this chained runnable, catching any exception of type E and passing it to the optional exceptionHandler.
executeCatchingImpl
Link copied to clipboard
open override fun <E : Exception> executeCatchingImpl(exceptionClass: KClass<E>, exceptionSync: Boolean, exceptionHandler: (E) -> Unit?)
Has to be public for use in inline function executeCatching, not intended to be used directly.

Properties

next
Link copied to clipboard
var next: ChainedRunnablePart<R, *>?
previous
Link copied to clipboard
val previous: ChainedRunnablePart<*, T>
runnable
Link copied to clipboard
val runnable: (T) -> R
sync
Link copied to clipboard
val sync: Boolean