close method

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

Closes session and frees used resources.

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

Implementation

@override
Future close(String? correlationId) async {
  if (_cleanupTimer != null) {
    var result = await _cleanupTimer!.close(correlationId);
    _cleanupTimer = null;
    Future.delayed(Duration(), () {
      return result;
    });
  }
}