timerwheel 0.1.0

Hierarchical timer wheel for delayed task scheduling with pluggable executors.
Documentation
// Copyright © 2026-present The Timerwheel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//! Common imports for applications that prefer a single glob import.
//!
//! The prelude exports timer, executor, policy, and error types that are
//! commonly used together. Timer and executor metric sink traits are exported
//! with explicit aliases to avoid name collisions.

pub use crate::error::{Error, Result};
pub use crate::executor::{
    BoxTask, Executor, ExecutorMetrics, MetricSink as ExecutorMetricSink,
    NoopMetricSink as NoopExecutorMetricSink, NoopPanicHandler, PanicHandler, Pool, PoolBuilder,
    RejectedTask, Task,
};
pub use crate::policy::{BackpressurePolicy, ExpiredTaskPolicy, RejectPolicy};
pub use crate::timer::{
    MetricSink as TimerMetricSink, NoopMetricSink as NoopTimerMetricSink, Timeout, Timer,
    TimerBuilder, TimerMetrics,
};

#[cfg(feature = "tokio")]
pub use crate::tokio::{
    Executor as TokioExecutor, Timer as TokioTimer, TimerBuilder as TokioTimerBuilder,
};