aboutsummaryrefslogtreecommitdiff
path: root/embassy-time
diff options
context:
space:
mode:
authorredfast00 <[email protected]>2025-08-12 15:44:41 +0200
committerredfast00 <[email protected]>2025-08-12 15:44:41 +0200
commit2f0e8aa24481f1a9a79126756a0c294d82229f3d (patch)
tree3db9e3d3cb44a43b9cbbafe487872bfce10c6940 /embassy-time
parent7672229ffe00189fd2258020f933fab6146889cb (diff)
docs: clarify that timer will expire immediately if in past
Diffstat (limited to 'embassy-time')
-rw-r--r--embassy-time/src/timer.rs1
1 files changed, 1 insertions, 0 deletions
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 {
103 103
104impl Timer { 104impl Timer {
105 /// Expire at specified [Instant](struct.Instant.html) 105 /// Expire at specified [Instant](struct.Instant.html)
106 /// Will expire immediately if the Instant is in the past.
106 pub fn at(expires_at: Instant) -> Self { 107 pub fn at(expires_at: Instant) -> Self {
107 Self { 108 Self {
108 expires_at, 109 expires_at,