Ask a question to get started
Enter to send•Shift+Enter new line
EventSource()
Protocol
Start forwarding events to sink.
sink
Park until the source is cancelled or its transport dies.
Implementations should re-raise CancelledError and propagate unexpected transport-layer failures so the lifecycle owner can notice and surface them.
CancelledError
Stop forwarding events and release transport resources.
Source of external events for the CLI app.
Implementations must be safe to stop() even when start() failed partway through; the app always invokes stop() from a finally block.
stop()
start()
finally