close method

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

Closes component and frees used resources.

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

Implementation

@override
Future close(String? correlationId) async {
  if (_client != null) {
    await _client!.get_connection().close();
    _client = null;
  }
}