-
- All Implemented Interfaces:
public final class KeyedSingleSharedFlowKt
-
-
Method Summary
Modifier and Type Method Description final static KeyedSingleSharedFlowContextkeyedSingleSharedFlow(Mutex mutex, Map<String, KeyedSingleSharedFlowContainer<?>> map)Create a new KeyedSingleSharedFlowContext object final static <T extends Any> TwithSingleShared(CoroutineScope $self, CoroutineContext context, String key, SuspendFunction0<T> block)Hot-invoke specified suspending function by unique key final static <T extends Any> Flow<T>withSingleSharedFlow(CoroutineScope $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 keyedSingleSharedFlow(Mutex mutex, Map<String, KeyedSingleSharedFlowContainer<?>> map)
Create a new KeyedSingleSharedFlowContext object
-
withSingleShared
final static <T extends Any> T withSingleShared(CoroutineScope $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> Flow<T> withSingleSharedFlow(CoroutineScope $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
-
-
-
-