W3cubDocs

/Pony

StdStream

[Source]

Asynchronous access to stdout and stderr. The constructors are private to ensure that access is provided only via an environment.

actor tag StdStream

Constructors

_out

[Source]

Create an async stream for stdout.

new tag _out()
: StdStream tag^

Returns

_err

[Source]

Create an async stream for stderr.

new tag _err()
: StdStream tag^

Returns

Public Behaviours

print

[Source]

Print some bytes and insert a newline afterwards.

be print(
  data: (String val | Array[U8 val] val))

Parameters

write

[Source]

Print some bytes without inserting a newline afterwards.

be write(
  data: (String val | Array[U8 val] val))

Parameters

printv

[Source]

Print an iterable collection of ByteSeqs.

be printv(
  data: ByteSeqIter val)

Parameters

writev

[Source]

Write an iterable collection of ByteSeqs.

be writev(
  data: ByteSeqIter val)

Parameters

flush

[Source]

Flush any data out to the os (ignoring failures).

be flush()

Private Functions

_write

[Source]

Write the bytes without explicitly flushing.

fun ref _write(
  data: (String val | Array[U8 val] val))
: None val

Parameters

Returns

_print

[Source]

Write the bytes and a newline without explicitly flushing.

fun ref _print(
  data: (String val | Array[U8 val] val))
: None val

Parameters

Returns

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