class X::Scheduler::CueInNaNSeconds

Error caused by passing NaN to Scheduler.cue as :at, :in, or :every

class X::Scheduler::CueInNaNSeconds is Exception { }

When calling ThreadPoolScheduler.cue or CurrentThreadScheduler.cue with :at, :in, or :every as NaN, this exception gets thrown. For example, the following code:

my Cancellation $c = $*SCHEDULER.cue({
    say 'This will never output :(';
}at => NaN);

Throws with:

Cannot pass NaN as a number of seconds to Scheduler.cue

This class only exists in releases 2019.05 and later.