{
  "id": "rust-tokio-select-table",
  "kind": "table",
  "slug": "rust-tokio-select",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/rust-tokio-select/",
  "title": "Wait on the first completed branch with tokio::select!",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "Pattern",
      "source": "Tokio tutorial",
      "detail": "Must match the completed expression's value"
    },
    {
      "name": "Async expression",
      "source": "Tokio tutorial",
      "detail": "Runs concurrently on the current task"
    },
    {
      "name": "Optional if precondition",
      "source": "Tokio tutorial",
      "detail": "A precondition on the branch"
    },
    {
      "name": "Handler",
      "source": "Tokio tutorial",
      "detail": "Evaluated for the completed branch"
    },
    {
      "name": "Optional else",
      "source": "Tokio tutorial",
      "detail": "Runs if none of the other branches match"
    },
    {
      "name": "64 branches",
      "source": "Tokio tutorial",
      "detail": "The current limit in the tutorial"
    }
  ],
  "related_slugs": [
    "rust-async-await-futures",
    "go-goroutines-channels",
    "rust-cargo-new-project"
  ],
  "license": "CC-BY-4.0",
  "source_license": "MIT (Tokio tutorial); MIT (Tokio API docs); prose restates cited source lines in own words",
  "as_of": "2026-11-19",
  "status": "deep-draft-20261119",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}