close method

  1. @override
Future close({
  1. bool force = false,
})
override

Closes any HTTP Client resources.

If force is false (the default) the Client will be kept alive until all active connections are done. If force is true any active connections will be closed to immediately release all resources (subject to platform support).

Implementation

@override
Future close({bool force = false}) async {
  await _executor.close();
  await _client.close(force: force);
}