//! # Basic: run one task
//!
//! This example shows the smallest static setup: create a task, run it once, and wait for the supervisor to finish.
//!
//! It uses:
//! - `TaskFn::arc` to turn an async closure into a `TaskRef`;
//! - `TaskSpec::once` to disable restarts;
//! - `Supervisor::run` to start the task and wait for completion.
//!
//! The task finishes at once. It does not use its `TaskContext`.
//! A long-running task should observe cancellation; see `worker.rs`.
//!
//! Run with `cargo run --example basic`.
use *;
async