Function spacetimedb_bindings_sys::schedule

source ·
pub fn schedule(name: &str, args: &[u8], time: u64) -> u64
Expand description

Schedule a reducer to be called asynchronously at time.

The reducer is assigned name and is provided args as its argument.

A generated schedule id is assigned to the reducer which is returned.

Returns an error if the time delay exceeds 64^6 - 1 milliseconds from now.

TODO: not fully implemented yet TODO(Centril): Unsure what is unimplemented; perhaps it refers to a new implementation with a special system table rather than a special sys call.