DurationStream
Represents a stream of durations.
Initialize the stream.
init (stream<anydata, Error?> anydataStream)
anydata stream
Retrieve the next value of the stream.
Close the stream.
function next() returns record {| value Seconds |} | Error?
Returns the next value of the stream or else an error
function close() returns Error?
Returns an error if failed to close the stream