ContextSafelyExceptionHandler

ExceptionHandler wrapper which was created to make possible to use handler across all coroutines calls

See also

safelyWithContextExceptionHandler

Constructors

Link copied to clipboard
constructor(handler: ExceptionHandler<Unit>)

Properties

Link copied to clipboard
Link copied to clipboard
open override val key: CoroutineContext.Key<*>

Functions

Link copied to clipboard
open override fun <R> fold(initial: R, operation: (R, CoroutineContext.Element) -> R): R
Link copied to clipboard
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
Link copied to clipboard

Creates a SupervisorJob linked to this CoroutineContext's job. The new supervisor job will be a child of the current job, and optionally combined with additionalContext.

Link copied to clipboard
fun CoroutineContext.LinkedSupervisorScope(additionalContext: CoroutineContext? = null): CoroutineScope

Creates a new CoroutineScope with a SupervisorJob linked to this CoroutineContext's job. The new scope's supervisor job will be a child of the current job, and optionally combined with additionalContext.

Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
Link copied to clipboard
open operator fun plus(context: CoroutineContext): CoroutineContext