diff options
| author | Ulf Lilleengen <[email protected]> | 2025-08-12 23:01:37 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-12 23:01:37 +0200 |
| commit | 39e75bb02f0c566b08ba75133c9e67c8d71b5b01 (patch) | |
| tree | 3806a9b29a56aca3e1d9516437f2672a8074dc41 | |
| parent | 34aa186734caaed386789d4c37d2f1e9a202059a (diff) | |
| parent | 2f0e8aa24481f1a9a79126756a0c294d82229f3d (diff) | |
Merge pull request #4531 from redfast00/feature/timer-docs
docs: clarify that timer will expire immediately if in past
| -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, |
