Skip to content

Ensure :native is a valid parameter type #13781

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/elixir/lib/system.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ defmodule System do
This time is monotonically increasing and starts in an unspecified
point in time.
"""
@spec monotonic_time(time_unit) :: integer
@spec monotonic_time(time_unit | :native) :: integer
def monotonic_time(unit) do
:erlang.monotonic_time(normalize_time_unit(unit))
end
Expand All @@ -1265,7 +1265,7 @@ defmodule System do
case of time warps although the VM works towards aligning
them. This time is not monotonic.
"""
@spec system_time(time_unit) :: integer
@spec system_time(time_unit | :native) :: integer
def system_time(unit) do
:erlang.system_time(normalize_time_unit(unit))
end
Expand Down Expand Up @@ -1316,7 +1316,7 @@ defmodule System do
`monotonic_time/1`), gives the Erlang system time that corresponds
to that monotonic time.
"""
@spec time_offset(time_unit) :: integer
@spec time_offset(time_unit | :native) :: integer
def time_offset(unit) do
:erlang.time_offset(normalize_time_unit(unit))
end
Expand Down
Loading