Skip to content

MonthlyIter

[Source]

Iterator over the fire instants of a MonthlyRecurrence. Each call to next_fire() returns the next instant strictly after the previous one — or, on the first call, strictly after the after_posix passed at construction.

Sticky error model: once any call returns a NextFireError, every subsequent call returns the same error. This lets a consumer loop on next_fire() without re-checking conditions, knowing that forward progress has stopped.

class ref MonthlyIter

Constructors

create

[Source]

new ref create(
  r: MonthlyRecurrence val,
  after_posix: (I64 val , I64 val))
: MonthlyIter ref^

Parameters

Returns


Public Functions

next_fire

[Source]

fun ref next_fire()
: ((I64 val , I64 val) | NextFireError)

Returns