integral_isolates
library
Typedefs
-
IsolateCallback<Q, R>
= FutureOr<R> Function(Q message)
-
Signature for the callback passed to StatefulIsolate.compute.
-
IsolateComputeImpl
= Future<R> Function<Q, R>(IsolateCallback<Q, R> callback, Q message, {String? debugLabel})
-
Data type of the implementation of the computation function.
-
IsolateStream<Q, R>
= Stream<R> Function(Q message)
-
Signature for the callback passed to StatefulIsolate.computeStream.
-
IsolateStreamComputeImpl
= Future<R> Function<Q, R>(IsolateStream<Q, R> callback, Q message, {String? debugLabel})
-
Data type of the implementation of the stream function.
-
TailoredIsolateComputeImpl<Q, R>
= Future<R> Function(IsolateCallback<Q, R> callback, Q message, {String? debugLabel})
-
Data type of the implementation of the computation function.
Exceptions / Errors
-
BackpressureDropException
-
Exception that is thrown when a job is dropped due to backpressure.
-
DropException
-
Base exception that is thrown when job is dropped.
-
InitException
-
Exception that is thrown if init has not been called before starting to use
isolate.
-
IsolateClosedDropException
-
Exception that is thrown when a job is dropped due to isolate being closed.
-
UnexpectedDropException
-
Exception that preferably should never occur, but that will be thrown when
the isolate call was dropped in unexpected cases.