Session

interface Session : CoroutineContext.Element

Types

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

Functions

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

Properties

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