flushDrains property

bool flushDrains
getter/setter pair

Whether flush models a real drain acknowledgement (Windows, Linux, Android) by zeroing pendingWriteBytes once it resolves. Set false to model the best-effort platforms (macOS/iOS), where flush resolves immediately and the queue drains on its own time — tests then lower pendingWriteBytes themselves to simulate the OS draining.

Implementation

bool flushDrains = true;