trySendAll method
Send all items using trySend without waiting (best-effort).
If the channel becomes full, items are silently dropped. Use this when you want maximum throughput and can tolerate data loss.
Example:
// High-throughput logging (ok to drop on full)
final logs = generateLogEntries();
await tx.trySendAll(logs); // Fast, may drop some logs
Implementation
Future<void> trySendAll(Iterable<T> it) async {
for (final v in it) {
trySend(v);
}
}