Skip to content

Commit

Permalink
Fix timer:sleep/1 spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria-12648430 committed Jan 15, 2025
1 parent a2c9c99 commit da10132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stdlib/src/timer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ Naturally, this function does _not_ return immediately.
> values are accepted.
""".
-spec sleep(Time) -> 'ok'
when Time :: timeout().
when Time :: time() | 'infinity'.
sleep(T)
when is_integer(T),
T > ?MAX_RECEIVE_AFTER ->
Expand Down

0 comments on commit da10132

Please sign in to comment.