emitAndWaitSideEffect<V> method
Emits a side effect and waits for the result.
Used when a response from the UI is required, such as confirming an action.
The UI must complete the effect using effect.complete(value).
Implementation
Future<V> emitAndWaitSideEffect<V>(JEffect<V> effect) {
emitSideEffect(effect);
return effect.result;
}