close method
Implementation
Future<void> close() async {
if (_closed || _closing) return;
_closing = true;
try {
await _drainPending();
await _guard('close', () => _backend.close());
} finally {
_closed = true;
}
}
Future<void> close() async {
if (_closed || _closing) return;
_closing = true;
try {
await _drainPending();
await _guard('close', () => _backend.close());
} finally {
_closed = true;
}
}