Session

interface Session : CoroutineContext.Element

Types

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

Functions

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

Properties

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