class documentation
The write side of a Goal; every method runs on the Runtime's event loop.
| Method | __init__ |
Open a sink buffering at most depth feedback messages, affine to the running loop. |
| Async Method | await |
Await how the goal ended. |
| Method | deliver |
Accept one decoded feedback message, dropping the oldest if the buffer is full. |
| Method | require |
Refuse an operation running on an event loop other than the one this sink opened on. |
| Method | settle |
End the goal, waking everything waiting on it. The first settlement wins. |
| Async Method | take |
Await the next buffered feedback message. |
| Property | outcome |
Return how the goal ended, or None while it is still running. |
| Property | settled |
Return whether the goal has ended, however it ended. |
| Instance Variable | _arrival |
Undocumented |
| Instance Variable | _feedback |
Undocumented |
| Instance Variable | _loop |
Undocumented |
| Instance Variable | _outcome |
Undocumented |
| Instance Variable | _settled |
Undocumented |
Open a sink buffering at most depth feedback messages, affine to the running loop.
| Parameters | |
depth:int | How many feedback messages may wait for a consumer. When the buffer is full the oldest is dropped. |
| Raises | |
ValueError | When the depth is less than one. |
RuntimeError | When constructed with no running event loop. |
Refuse an operation running on an event loop other than the one this sink opened on.
| Raises | |
LoopAffinityError | When the running loop is not this sink's. |
Await the next buffered feedback message.
| Raises | |
GoalClosedError | When the goal has ended and no feedback is left buffered. |
LoopAffinityError | When awaited on a loop other than this sink's. |