La referencia de la API está disponible solo en inglés por ahora.

EmitHandle

class
yoltra/effects.py:50

The result of an `emit()` — settles when this event's effects finish. State is already committed when this is returned; the handle tracks only the asynchronous effect phase.

Constructor

constructor

Initialize self. See help(type(self)) for accurate signature.

signature
new(event_id, committed, _effects): None

Initialize self. See help(type(self)) for accurate signature.

Parameters

NameTypeDescription
event_idstr
NameTypeDescription
committedbool
NameTypeDescription
_effectsFuture<None>

Returns

None

Properties

NameTypeDescription
committedboolWhether the event passed middleware and ran reducers.
effects_doneboolWhether this event's effects have finished.
event_idstrThe emitted event's id.

Methods

wait

Block until this event's effects finish (sync scripts).

signature
wait(timeout?): None

Block until this event's effects finish (sync scripts).

Parameters

NameTypeDescription
timeout?float | NoneOptional seconds to wait before raising `concurrent.futures.TimeoutError`.

Returns

None