A socket: acquiring reader in a scope opens it (until the scope
closes); writer writes to the open connection, waiting for one.
make(reader, writer) builds one.
Attributes#
| Attribute | Type | Description |
|---|---|---|
reader | Effect[Reader, SocketError, Scope] | Opens the connection for the life of the scope and gives its
|
writer | Effect[Writer, Never, Scope] | The |
Functions#
__init__#
__init__(reader, writer) -> None| Parameter | Type | Description |
|---|---|---|
reader | Effect[Reader, SocketError, Scope] | |
writer | Effect[Writer, Never, Scope] |
def __init__(
self, reader: Effect[Reader, SocketError, Scope], writer: Effect[Writer, Never, Scope]
) -> None:
self._reader = reader
self._writer = writer