DefaultSession

class DefaultSession : Session

Functions

awaitCompletedContextSync
Link copied to clipboard
open suspend override fun awaitCompletedContextSync()
bind
Link copied to clipboard
suspend fun bind(transport: RPCTransport, contract: RPCNode.Contract)
clear
Link copied to clipboard
suspend fun clear()
clearContext
Link copied to clipboard
open suspend override fun clearContext()
contextTransaction
Link copied to clipboard
open suspend override fun contextTransaction(block: Session.Context.Mutator.() -> Unit)
copyOfContext
Link copied to clipboard
open override 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?
open operator override fun <VALUE : Any> get(key: Session.Context.Key<VALUE>): VALUE?
iterator
Link copied to clipboard
open operator override fun iterator(): Iterator<Session.Context.Item<*>>
minusKey
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
observe
Link copied to clipboard
open override fun <VALUE : Any> observe(key: Session.Context.Key<VALUE>): Flow<VALUE?>
observeContextSnapshots
Link copied to clipboard
open override fun observeContextSnapshots(): Flow<Session.Context>
observeModifications
Link copied to clipboard
open override fun observeModifications(): Flow<Set<Session.Context.Key<*>>>
plus
Link copied to clipboard
open operator fun plus(context: CoroutineContext): CoroutineContext
update
Link copied to clipboard
suspend fun update(request: ContextUpdateRequest): ContextUpdateResult
whileConnected
Link copied to clipboard
suspend fun whileConnected()

Properties

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