From 2f0e8aa24481f1a9a79126756a0c294d82229f3d Mon Sep 17 00:00:00 2001 From: redfast00 Date: Tue, 12 Aug 2025 15:44:41 +0200 Subject: docs: clarify that timer will expire immediately if in past --- embassy-time/src/timer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/embassy-time/src/timer.rs b/embassy-time/src/timer.rs index 54bb9b6d8..fcf79f58e 100644 --- a/embassy-time/src/timer.rs +++ b/embassy-time/src/timer.rs @@ -103,6 +103,7 @@ pub struct Timer { impl Timer { /// Expire at specified [Instant](struct.Instant.html) + /// Will expire immediately if the Instant is in the past. pub fn at(expires_at: Instant) -> Self { Self { expires_at, -- cgit