StdinInput¶
Default TerminalInput that reads from stdin via Pony's InputNotify.
Implements¶
- TerminalInput tag
Constructors¶
create¶
Create a StdinInput bound to the given Env.
Parameters¶
- env: Env val
Returns¶
- StdinInput tag^
Public Behaviours¶
subscribe¶
Subscribe a listener to receive raw bytes from stdin.
Parameters¶
- listener: InputListener tag
dispose¶
Stop reading input. Passing None unsubscribes the ASIO event on stdin, allowing the runtime to shut down once no actors have pending work.