-
public final class ConsumerScopeKt
-
-
Method Summary
Modifier and Type Method Description final static UnitSubscribe(ConsumerScope<?, ?> $self)Equivalent to calling ConsumerScope.consume. final static <A extends MVIAction> UnitSubscribe(ConsumerScope<?, A> $self, SuspendFunction2<CoroutineScope, A, Unit> onAction)Equivalent to calling ConsumerScope.consume. final static <I extends MVIIntent, A extends MVIAction> UnitEmptyScope(Function1<ConsumerScope<I, A>, Unit> call)A no-op scope for testing and preview purposes. -
-
Method Detail
-
Subscribe
final static Unit Subscribe(ConsumerScope<?, ?> $self)
Equivalent to calling ConsumerScope.consume.
-
Subscribe
final static <A extends MVIAction> Unit Subscribe(ConsumerScope<?, A> $self, SuspendFunction2<CoroutineScope, A, Unit> onAction)
Equivalent to calling ConsumerScope.consume.
-
EmptyScope
final static <I extends MVIIntent, A extends MVIAction> Unit EmptyScope(Function1<ConsumerScope<I, A>, Unit> call)
A no-op scope for testing and preview purposes. ConsumerScope.send and ConsumerScope.consume do nothing
-
-
-
-