close method

  1. @override
Future close(
  1. IContext? context
)
override

Closes component and frees used resources.

  • context (optional) a context to trace execution through call chain. Return Future that receives null no errors occured. Throw error

Implementation

@override
Future close(IContext? context) async {
  if (opened) {
    logger.info(context, 'Closed direct client');
  }

  opened = false;
}