-
- All Implemented Interfaces:
public interface KeyedSingleSharedFlowContext implements CoroutineContext.Element
Coroutine context element by using CoroutineScope#withSingleShared or CoroutineScope#withSingleSharedFlow
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classKeyedSingleSharedFlowContext.Key
-
Method Summary
Modifier and Type Method Description <R extends Any> Rfold(R initial, Function2<R, CoroutineContext.Element, R> operation)<E extends CoroutineContext.Element> Eget(CoroutineContext.Key<E> key)CoroutineContextminusKey(CoroutineContext.Key<?> key)CoroutineContextplus(CoroutineContext context)CoroutineContext.Key<?>getKey()abstract MutexgetMutex()abstract Map<String, KeyedSingleSharedFlowContainer<?>>getMap()-
-
Method Detail
-
get
<E extends CoroutineContext.Element> E get(CoroutineContext.Key<E> key)
-
minusKey
CoroutineContext minusKey(CoroutineContext.Key<?> key)
-
plus
CoroutineContext plus(CoroutineContext context)
-
getKey
CoroutineContext.Key<?> getKey()
-
getMutex
abstract Mutex getMutex()
-
getMap
abstract Map<String, KeyedSingleSharedFlowContainer<?>> getMap()
-
-
-
-