W3cubDocs

/Pony

_ProcessClient

[Source]

Notifications for Process connections.

class ref _ProcessClient is
  ProcessNotify ref

Implements

Constructors

create

[Source]

new iso create(
  out: USize val,
  err: String val,
  exit_code: I32 val,
  h: TestHelper val)
: _ProcessClient iso^

Parameters

Returns

Public Functions

stdout

[Source]

Called when new data is received on STDOUT of the forked process

fun ref stdout(
  process: ProcessMonitor ref,
  data: Array[U8 val] iso)
: None val

Parameters

Returns

stderr

[Source]

Called when new data is received on STDERR of the forked process

fun ref stderr(
  process: ProcessMonitor ref,
  data: Array[U8 val] iso)
: None val

Parameters

Returns

failed

[Source]

ProcessMonitor calls this if we run into errors with the forked process.

fun ref failed(
  process: ProcessMonitor ref,
  err: (ExecveError val | ForkError val | KillError val | 
    PipeError val | Unsupported val | WaitpidError val | 
    WriteError val | CapError val))
: None val

Parameters

Returns

dispose

[Source]

Called when ProcessMonitor terminates to cleanup ProcessNotify We receive the exit code of the child process from ProcessMonitor.

fun ref dispose(
  process: ProcessMonitor ref,
  child_exit_code: I32 val)
: None val

Parameters

Returns

created

[Source]

fun ref created(
  process: ProcessMonitor ref)
: None val

Parameters

Returns

expect

[Source]

fun ref expect(
  process: ProcessMonitor ref,
  qty: USize val)
: USize val

Parameters

Returns

© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/process-_ProcessClient