class Event[P, A, E]
An event tagged tag whose payload is a P, whose handler
succeeds with an A or fails with an E.
Attributes#
| Attribute | Type | Description |
|---|---|---|
tag | str | |
primary_key | Callable[[P], str] | |
payload | _C[P] | |
success | _C[A] | |
error | _C[E] | |
payload_codec | BytesCodec[P] | The payload's schema read from and written to an entry's bytes
(Effect's |
Functions#
__init__#
__init__(tag, primary_key, payload, success, error, _payload_codec=None) -> None| Parameter | Type | Description |
|---|---|---|
tag | str | |
primary_key | Callable[[P], str] | |
payload | _C[P] | |
success | _C[A] | |
error | _C[E] | |
_payload_codec | BytesCodec[P] | None = None |