singleCallbackPortWithoutTimeout<P> function
Same as singleResponseFuture, but without timeout
,
this allows us not to require a nullable value in the callback
Implementation
SendPort singleCallbackPortWithoutTimeout<P>(
void Function(P response) callback) {
return singleCallbackPortWithTimeout<P?>(
(response) => callback(response as P),
timeoutValue: null,
);
}