IsolateStream<Q, R> typedef

IsolateStream<Q, R> = Stream<R> Function(Q message)

Signature for the callback passed to StatefulIsolate.computeStream.

Instances of IsolateStream must be functions that can be sent to an isolate.

Implementation

typedef IsolateStream<Q, R> = Stream<R> Function(Q message);