BackendEnvironment

Interface to access server-provided interfaces from within the RPC methods.

An instance of this class is added to coroutine context by RPC dispatcher and can be extracted using BackendEnvironment.get method.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun <ResourceT : Any> BackendEnvironment.cache(clazz: KClass<ResourceT>, key: Any = "", factory: suspend (Configuration, Resources) -> ResourceT): ResourceT

Lazily create and memoize an object that is defined by the given class and a key.

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
abstract fun <T : Any> getInterface(clazz: KClass<T>): T?
Link copied to clipboard
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
Link copied to clipboard
open operator fun plus(context: CoroutineContext): CoroutineContext