Expand description
§mytheclipse
Resource-aware abstractions for async I/O, heavy compute, and background queue management, built on a single lazily-initialized global engine context.
Call init once at startup (or simply let the first call to any
entry point below trigger it lazily) and then use whichever of the
feature-gated entry points your workload needs:
spawn_io(featureio) — spawn an async I/O task, tracing-instrumented.compute()(featurecompute) — run CPU-bound work on a sized Rayon pool, panic-isolated.spawn_bg(featurebg) — spawn a background task under bounded concurrency.
Enable the full feature to pull in all three at once.
Re-exports§
pub use context::context;pub use context::EngineContext;pub use error::MytheclipseError;pub use io::spawn_io;pub use compute::compute;pub use bg::spawn_bg;
Modules§
- bg
- Bounded-concurrency background task execution.
- compute
- Panic-isolated heavy compute on a sized
rayon::ThreadPool. - context
- Global engine context providing resource-aware execution primitives.
- error
- Shared error type for mytheclipse execution primitives.
- io
- Async I/O task spawning, instrumented with
tracing.
Functions§
- init
- Bootstraps the global
EngineContext.