Skip to main content

Function: nextTickBoundary()

nextTickBoundary(zone, at, step): Instant

Defined in: time/snap.ts:62

The first whole step boundary strictly after at, in zone — one step past tickFloor's own answer, the same walk snapInstant above reads (#489). Never returns at's own floor, even when at already sits on a boundary — a caller that arms something for the boundary at already sits on would fire immediately and never advance. Takes the same TickStep shape snapInstant does — the two used to disagree, one keyed on an object and the other on two positional arguments, for no reason a caller could tell apart.

Parameters​

zone​

string

at​

Instant

step​

TickStep

Returns​

Instant