Makes the RPC client protocols of the RPC-based Runners
(Effect's Runners.RpcClientProtocol).
Attributes#
| Attribute | Type | Description |
|---|---|---|
codec_for | CodecFor |
|
Functions#
__init__#
__init__(make, codec_for) -> None| Parameter | Type | Description |
|---|---|---|
make | Callable[[RunnerAddress], Effect[ClientProtocolService, Never, Scope]] | |
codec_for | CodecFor |
def __init__(
self,
make: Callable[[RunnerAddress], Effect[ClientProtocolService, Never, Scope]],
codec_for: CodecFor,
) -> None:
self._make = make
self._codec_for = codec_formake#
make(address) -> Effect[ClientProtocolService, Never, Scope]A client protocol connected to the runner at address, open
until the Scope closes; never fails (connection errors surface
through the protocol's calls).
| Parameter | Type | Description |
|---|---|---|
address | RunnerAddress |
Returns Effect[ClientProtocolService, Never, Scope]
def make(self, address: RunnerAddress) -> Effect[ClientProtocolService, Never, Scope]:
"""A client protocol connected to the runner at ``address``, open
until the ``Scope`` closes; never fails (connection errors surface
through the protocol's calls)."""
return self._make(address)