Skip to content

Commit 4b49e72

Browse files
author
alexrp
committed
Add System.services_timeout/0 function.
1 parent a3df724 commit 4b49e72

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/elixir/lib/system.ex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,14 @@ defmodule System do
296296
do_halt(to_char_list(status), options)
297297
end
298298

299+
# services_timeout/0 is an internal function only to be used by Elixir.
300+
301+
@doc false
302+
@spec services_timeout() :: non_neg_integer | :infinity
303+
def services_timeout() do
304+
:elixir_compiler.get_timeout
305+
end
306+
299307
# Support R15B
300308
if List.member?(:erlang.module_info(:exports), { :halt, 2 }) do
301309
defp do_halt(status, options), do: :erlang.halt(status, options)

0 commit comments

Comments
 (0)