pendingWriteBytes property

  1. @override
int get pendingWriteBytes
override

Bytes accepted by send but not yet "handed to the OS". Grows by data.length on every send; returns to 0 on a successful flush when flushDrains is true. Also settable, so tests can script arbitrary queue depths and drain timelines.

Implementation

@override
int get pendingWriteBytes => _pendingWriteBytes;
set pendingWriteBytes (int value)

Implementation

set pendingWriteBytes(int value) => _pendingWriteBytes = value;