CodeSampleX

サンプル

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

検証済みサンプル — cargo futures-util 0.3.34: Handle stream unfold return tuple ordering, buffer_unordered and buffered concurrency and deadlock traps, ready_chunks…

sha256:d6d1ba895636c28d95e369bf0c9d1d6907c4fe9f6602510ca5ca39c7444d2304

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
2
ビルドした署名鍵
2
宣言された環境 rust linux x64 rust rust cargo

検証実行環境

環境 コントラクト ステージ 実行日
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

ケース

HOW
ゴール
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
パッケージ
シンボル
  • 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
環境
rust
作成日
2026-08-16T09:35:23Z

コントラクト

  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

ファイル

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

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

csx-seed