SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

FEATURE REQUEST: ScheduleAt::Delay

Open joshua-spacetime opened this issue 1 year ago • 1 comments

From @SteveBoytsun:

it would be nice to have a ScheduleAt::Delay option that works like ScheduleAt::Time but with relative offset (so we can schedule a one-off timer like so ScheduleAt::Delay(Duration::from_secs(secs)) instead of ScheduleAt::Time(Timestamp::now().checked_add(Duration::from_secs(secs)).unwrap().into_micros_since_epoch()))

joshua-spacetime avatar Dec 20 '24 20:12 joshua-spacetime

We will implement this as a helper method (not a new enum variant).

bfops avatar Jan 13 '25 20:01 bfops