-
- All Implemented Interfaces:
public final class KeyedSingleSharedFlowKt
-
-
Method Summary
Modifier and Type Method Description final static KeyedSingleSharedFlowContext,Map)>keyedSingleSharedFlow(<ERROR CLASS> mutex, Map<String, KeyedSingleSharedFlowContainer<?>> map)Create a new KeyedSingleSharedFlowContext object final static <T extends Any> T,CoroutineContext,String,SuspendFunction0)>withSingleShared(<ERROR CLASS> $self, CoroutineContext context, String key, SuspendFunction0<T> block)Hot-invoke specified suspending function by unique key final static <T extends Any> <ERROR CLASS><T>,CoroutineContext,String,SuspendFunction0)>withSingleSharedFlow(<ERROR CLASS> $self, CoroutineContext context, String key, SuspendFunction0<T> block)Hot-invoke specified suspending function with convert to flow by unique key -
-
Method Detail
-
keyedSingleSharedFlow
final static KeyedSingleSharedFlowContext ,Map)>keyedSingleSharedFlow(<ERROR CLASS> mutex, Map<String, KeyedSingleSharedFlowContainer<?>> map)
Create a new KeyedSingleSharedFlowContext object
-
withSingleShared
final static <T extends Any> T ,CoroutineContext,String,SuspendFunction0)>withSingleShared(<ERROR CLASS> $self, CoroutineContext context, String key, SuspendFunction0<T> block)
Hot-invoke specified suspending function by unique key
- Parameters:
key- unique key to use hot-invoke a specified suspending functionblock- suspending function to invoke
-
withSingleSharedFlow
final static <T extends Any> <ERROR CLASS><T> ,CoroutineContext,String,SuspendFunction0)>withSingleSharedFlow(<ERROR CLASS> $self, CoroutineContext context, String key, SuspendFunction0<T> block)
Hot-invoke specified suspending function with convert to flow by unique key
- Parameters:
key- unique key to use hot-invoke a specified flowblock- suspending function to invoke
-
-
-
-