OutboundQueue constructor
OutboundQueue({
- required Future<
void> send(- Uint8List bytes
- bool isReady()?,
- bool canSend(
- Uint8List bytes
- bool Function() createSendGuard(
- Uint8List bytes
- bool Function() createDecodedSendGuard()?,
- void onDropped(
- String type
- Uint8List? substituteOnReject()?,
- int? maxPayloadBytes,
- int maxAttempts = 3,
- Duration backoffBase = const Duration(milliseconds: 200),
- int lossyCap = 32,
- int guaranteedCap = 64,
- Duration readyPoll = const Duration(milliseconds: 250),
- Future<
void> sleep()?,
Implementation
OutboundQueue({
required this.send,
this.isReady,
this.canSend,
this.createSendGuard,
this.createDecodedSendGuard,
this.onDropped,
this.substituteOnReject,
this.maxPayloadBytes,
this.maxAttempts = 3,
this.backoffBase = const Duration(milliseconds: 200),
this.lossyCap = 32,
this.guaranteedCap = 64,
this.readyPoll = const Duration(milliseconds: 250),
Future<void> Function(Duration)? sleep,
}) : _sleep = sleep ?? _defaultSleep;