Class: DurationStream

Represents a stream of durations.

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 Seconds |} | Error?
Isolated Function

Retrieve the next value of the stream.

Return Type

(record {| value Seconds |} | 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