futureCallAtTime method
- @Deprecated('Use generated future call methods instead.')
- String callName,
- SerializableModel? object,
- DateTime time, {
- String? identifier,
Calls a FutureCall by its name at the specified time, optionally passing a SerializableModel object as parameter.
Implementation
@Deprecated('Use generated future call methods instead.')
Future<void> futureCallAtTime(
String callName,
SerializableModel? object,
DateTime time, {
String? identifier,
}) async {
var futureCallManager = _futureCallManager;
assert(
server.running,
'Server is not running, call start() before using future calls',
);
if (futureCallManager == null) {
throw StateError('Future calls are disabled.');
}
await _futureCallManager?.scheduleFutureCall(
callName,
object,
time,
serverId,
identifier,
);
}