The remote half of a Runners service, which make completes
with local delivery: notify gets the runner (None when unknown),
the message and whether its caller discards the reply; codec_for
encodes payloads when local sends simulate a remote one.
Attributes#
| Attribute | Type | Description |
|---|---|---|
codec_for | CodecFor | |
ping | Callable[[RunnerAddress], Effect[None, RunnerUnavailable]] | |
send | Callable[[RunnerAddress, Outgoing], Effect[None, SendError]] | |
notify | Callable[[RunnerAddress | None, Outgoing, bool], Effect[None, SendError]] | |
on_runner_unavailable | Callable[[RunnerAddress], Effect[None]] |
Functions#
__init__#
__init__(*, codec_for, ping, send, notify, on_runner_unavailable) -> None| Parameter | Type | Description |
|---|---|---|
codec_for | CodecFor | |
ping | Callable[[RunnerAddress], Effect[None, RunnerUnavailable]] | |
send | Callable[[RunnerAddress, Outgoing], Effect[None, SendError]] | |
notify | Callable[[RunnerAddress | None, Outgoing, bool], Effect[None, SendError]] | |
on_runner_unavailable | Callable[[RunnerAddress], Effect[None]] |