dispose method
Closes the task after every accepted request, then waits for the worker to exit. Repeated calls return the same completion.
Implementation
Future<void> dispose() {
_disposing = true;
return _disposal ??= _close();
}
Closes the task after every accepted request, then waits for the worker to exit. Repeated calls return the same completion.
Future<void> dispose() {
_disposing = true;
return _disposal ??= _close();
}