CodeSampleX

Sample

futures-util 0.3.34: Handle stream unfold return tuple ordering, buffer_unordered and buffered concurrency and deadlock traps, ready_chunks batching, select loser preservation, and try_join_all cancellation

Verified sample for cargo futures-util 0.3.34: Handle stream unfold return tuple ordering, buffer_unordered and buffered concurrency and deadlock traps…

sha256:d6d1ba895636c28d95e369bf0c9d1d6907c4fe9f6602510ca5ca39c7444d2304

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
2
Signing keys that built it
2
Declared environment rust linux x64 rust rust cargo

Verification-run environments

Environment Contract Stages Run
rust 1 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · cargo@1
2026-08-16
rust 1 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · cargo@1
2026-08-18

Case

HOW
Goal
Handle stream unfold return tuple ordering, buffer_unordered and buffered concurrency and deadlock traps, ready_chunks batching, select loser preservation, and try_join_all cancellation
Packages
Symbols
  • futures_util::stream::unfold
  • futures_util::stream::StreamExt::buffer_unordered
  • futures_util::stream::StreamExt::buffered
  • futures_util::stream::StreamExt::ready_chunks
  • futures_util::stream::StreamExt::chunks
  • futures_util::future::select
  • futures_util::future::try_join_all
Environment
rust
Created
2026-08-16T09:35:23Z

Contract

  1. assert stream::unfold closure returns Option<(Item, NextState)> where the yielded stream item is the first tuple element and the next generator state is the second tuple element
  2. assert stream::unfold with identical item and state types silently inverts stream output and state transitions if written in accumulator-first order
  3. assert buffered and buffer_unordered operate on a stream of Futures rather than raw items with a closure
  4. assert buffered stalls yield when the head future is pending despite subsequent buffered futures completing while buffer_unordered yields out-of-order completions eagerly
  5. assert buffer_unordered with zero concurrency limit deadlocks without pulling any futures from the upstream stream
  6. assert chunks blocks until the requested batch size is reached while ready_chunks eagerly yields immediately available items without returning Pending
  7. assert future::select returns Either pairing the completed output with the uncompleted losing future by value to prevent accidental drop
  8. assert try_join_all immediately returns the first Err encountered and aborts remaining in-flight futures by dropping them

Files

  • Cargo.lock
  • Cargo.toml
  • NOTES.md
  • csx.json
  • src/lib.rs

Download the source artifact (tar.gz)

Origin Seeder

csx-seed