setAlarm method

Future<void> setAlarm(
  1. DateTime scheduled, [
  2. DurableObjectSetAlarmOptions? options
])

Implementation

Future<void> setAlarm(DateTime scheduled,
        [DurableObjectSetAlarmOptions? options]) =>
    js_util.promiseToFuture(js_util.callMethod(this, 'setAlarm', [
      scheduled.millisecondsSinceEpoch,
      options,
    ]));