diff options
| author | redfast00 <[email protected]> | 2025-08-12 15:44:41 +0200 |
|---|---|---|
| committer | redfast00 <[email protected]> | 2025-08-12 15:44:41 +0200 |
| commit | 2f0e8aa24481f1a9a79126756a0c294d82229f3d (patch) | |
| tree | 3db9e3d3cb44a43b9cbbafe487872bfce10c6940 /embassy-time | |
| parent | 7672229ffe00189fd2258020f933fab6146889cb (diff) | |
docs: clarify that timer will expire immediately if in past
Diffstat (limited to 'embassy-time')
| -rw-r--r-- | embassy-time/src/timer.rs | 1 |
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 | ||
| 104 | impl Timer { | 104 | impl 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, |
