close method

  1. @override
Future close(
  1. String? correlationId
)
override

Closes the timer.

This is required by ICloseable interface, but besides that it is identical to stop().

  • correlationId (optional) transaction id to trace execution through call chain. Retrun Future that receives error or null no errors occured.

See stop

Implementation

@override
Future close(String? correlationId) {
  stop();

  return Future.delayed(Duration());
}