Skip to content

StdinInput

[Source]

Default TerminalInput that reads from stdin via Pony's InputNotify.

actor tag StdinInput is
  TerminalInput tag

Implements


Constructors

create

[Source]

Create a StdinInput bound to the given Env.

new tag create(
  env: Env val)
: StdinInput tag^

Parameters

Returns


Public Behaviours

subscribe

[Source]

Subscribe a listener to receive raw bytes from stdin.

be subscribe(
  listener: InputListener tag)

Parameters


dispose

[Source]

Stop reading input. Passing None unsubscribes the ASIO event on stdin, allowing the runtime to shut down once no actors have pending work.

be dispose()