enqueue method
Buffers a bound result; unbound results are dropped.
A full buffer triggers a flush in the background; a partial one arms the idle timer.
Implementation
void enqueue(PendingResult item) {
final ctx = item.ctx;
if (!session.reportingEnabled || ctx == null || ctx.testCaseId <= 0) return;
_pending.add(item);
if (_pending.length >= session.config.flushMaxItems) {
unawaited(flush());
return;
}
if (_timer == null) _scheduleFlush();
}