Sync / foldkit-sync/do

armAlarm

function · packages/sync/src/do.ts:62

function armAlarm(storage: AlarmStorage, at: number): Promise<void>

Brings a Durable Object's alarm to at (ms since the Unix epoch) unless it is already sooner: what an application's own alarm() uses beside the host's, which shares the object's one alarm. Inside alarm() the runtime may still answer the alarm being run, so a time already past counts as no alarm.