socketry_executor/lib.rs
1// Released under the MIT License.
2// Copyright, 2026, by Samuel Williams.
3
4//! Owned tasks and cooperative future polling on work-stealing workers.
5//!
6//! Tasks require `Send + 'static` and use the ordinary worker thread stack.
7//! The scheduler owns spawned tasks even when their join handles are dropped.
8//! Use a [`Barrier`] to explicitly own a group of child tasks.
9#![doc = include_str!("../readme.md")]
10
11mod barrier;
12mod owner;
13pub mod scheduler;
14mod task;
15mod worker;
16
17pub use barrier::Barrier;
18pub use owner::{Spawn, SpawnError};
19pub use scheduler::{BufferResult, Clock, FileIo, Interest, Network, Scheduler, SchedulerHandle};
20pub use task::{Task, TaskError, TaskHandle, yield_now};