Class: AnyStream

Represents a stream of Any data.

Constructor

Initialize the stream.

init (stream<anydata, Error?> anydataStream)

Methods

next

Retrieve the next value of the stream.

close

Close the stream.

function next() returns record {| value Any |} | Error?
Isolated Function

Retrieve the next value of the stream.

Return Type

(record {| value Any |} | Error?)

Returns the next value of the stream or else an error

close

function close() returns Error?
Isolated Function

Close the stream.

Return Type

(Error?)

Returns an error if failed to close the stream