Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
docs
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun committed Oct 6, 2025
commit 6ac7217874c0b80a851e19b766951fa19ea6e258
2 changes: 0 additions & 2 deletions fastimer-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,5 @@ rust-version.workspace = true
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]

[lints]
workspace = true
13 changes: 11 additions & 2 deletions fastimer-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@
// limitations under the License.

//! # Fastimer Core APIs
//!
//! Core traits:
//!
//! * [`MakeDelay`]: a trait for creating delay futures.
//! * [`Spawn`]: a trait for spawning futures, this is useful for scheduling tasks.
//!
//! Utility functions:
//!
//! * [`far_future`]: create a far future instant.
//! * [`make_instant_from`]: create an instant from the given instant and a duration.
//! * [`make_instant_from_now`]: create an instant from [`Instant::now`] and a duration.

use std::future::Future;
use std::time::Duration;
Expand All @@ -38,8 +49,6 @@ pub fn make_instant_from_now(dur: Duration) -> Instant {
}

/// A trait for creating delay futures.
///
/// See [`MakeDelayExt`] for extension methods.
pub trait MakeDelay {
/// The future returned by the `delay`/`delay_until` method.
type Delay: Future<Output = ()> + Send;
Expand Down
Loading