Session

interface Session : CoroutineContext.Element

Types

Link copied to clipboard
class Context(data: MutableMap<Session.Context.Key<*>, Session.Context.Item<*>>)
Link copied to clipboard
object Id : Session.Context.Key<Long>
Link copied to clipboard
object Key : CoroutineContext.Key<Session>

Functions

Link copied to clipboard
abstract suspend fun awaitCompletedContextSync()
Link copied to clipboard
abstract suspend fun clearContext()
Link copied to clipboard
abstract suspend fun contextTransaction(block: Session.Context.Mutator.() -> Unit)
Link copied to clipboard
abstract fun copyOfContext(): Session.Context
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?
abstract operator fun <VALUE : Any> get(key: Session.Context.Key<VALUE>): VALUE?
Link copied to clipboard
abstract operator fun iterator(): Iterator<Session.Context.Item<*>>
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
Link copied to clipboard
abstract fun <VALUE : Any> observe(key: Session.Context.Key<VALUE>): Flow<VALUE?>
Link copied to clipboard
abstract fun observeContextSnapshots(): Flow<Session.Context>
Link copied to clipboard
abstract fun observeModifications(): Flow<Set<Session.Context.Key<*>>>
Link copied to clipboard
open operator fun plus(context: CoroutineContext): CoroutineContext

Properties

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