singleResponseFutureWithoutTimeout<R> function

Future<R> singleResponseFutureWithoutTimeout<R>(
  1. void action(
    1. SendPort responsePort
    )
)

Same as singleResponseFuture, but without timeout, this allows us not to require a nullable return value

Implementation

Future<R> singleResponseFutureWithoutTimeout<R>(
        void Function(SendPort responsePort) action) =>
    singleResponseFutureWithTimeout<R?>(action, timeoutValue: null)
        .then((value) => value as R);