bare_stow_host library
Host side of the bare-stow lifecycle for Dart.
Classes
- FrameDecoder
- Decodes frames from a stream of bytes.
- Ipc
- The host side of a stowed bundle, layering readiness, termination, and exit reporting over a transport.
Constants
- controlTag → const int
- The tag of a control frame.
- defaultGrace → const Duration
- The default time a terminating worker gets to stop and exit.
- userTag → const int
- The tag of a user data frame.
Functions
-
decodeControl(
List< int> payload) → Map<String, Object?> ? -
Decode the JSON object of a control frame, or return
nullif it isn't one. -
encodeControl(
String type, [Map< String, int> fields = const {}]) → Uint8List -
Encode a control frame of
typewith integerfields, in order. -
encodeFrame(
int tag, List< int> payload) → Uint8List -
Encode a frame of
tagcarryingpayload.
Exceptions / Errors
- WorkerException
- A fault reported by or observed in the worker.