Skip to main content

Crate yot_run

Crate yot_run 

Source
Expand description

A custom async runtime implementation demonstrating the core components of an async executor.

This crate provides a lightweight executor for running async tasks, with support for spawning futures and managing their lifecycle. It consists of:

  • executor: The main executor for driving tasks to completion
  • reactor: Event-driven reactor for handling I/O operations
  • task: Task management and state tracking
  • waker: Waker implementation for task scheduling

Re-exports§

pub use executor::Executor;
pub use task::Task;

Modules§

executor
The task executor for driving async tasks to completion.
net
Async TCP networking primitives built on top of the custom runtime.
reactor
Event-driven I/O reactor.
task
Task management and lifecycle tracking.
waker
Waker implementations for task scheduling and notification.

Structs§

Runtime
The main async runtime combining executor and reactor.

Functions§

spawn
Spawns a future from within an active runtime context.

Attribute Macros§

main
Procedural macro attribute to set up an async main function with yot_run runtime.