Skip to content

IntervalIter

[Source]

Iterator over the fire instants of an IntervalRecurrence. Each call to next() yields either a fresh ZonedDateTime iso^ or a NextFireError. The error is emitted exactly once, after which has_next() returns false.

class ref IntervalIter is
  Iterator[(ZonedDateTime iso^ | NextFireError val)] ref

Implements


Constructors

create

[Source]

new ref create(
  r: IntervalRecurrence val,
  after: ZonedDateTime box)
: IntervalIter ref^

Parameters

Returns


Public Functions

has_next

[Source]

fun ref has_next()
: Bool val

Returns


next

[Source]

fun ref next()
: (ZonedDateTime iso^ | NextFireError val)

Returns