@@ -324,30 +324,25 @@ defmodule System do
324
324
Note that on many platforms, only the status codes 0-255 are supported
325
325
by the operating system.
326
326
327
- For integer status, Erlang runtime system closes all ports and allows async
328
- threads to finish their operations before exiting. To exit without such
329
- flushing, pass options `[flush: false]` instead.
330
-
331
- For more information, check: http://www.erlang.org/doc/man/erlang.html#halt-2
327
+ For more information, check: http://www.erlang.org/doc/man/erlang.html#halt-1
332
328
333
329
## Examples
334
330
335
331
System.halt(0)
336
- System.halt(1, flush: false )
332
+ System.halt(1)
337
333
System.halt(:abort)
338
334
339
335
"""
340
336
@ spec halt ( ) :: no_return
341
337
@ spec halt ( non_neg_integer | binary | :abort ) :: no_return
342
- @ spec halt ( non_neg_integer | binary | :abort , [ ] | [ flush: false ] ) :: no_return
343
- def halt ( status // 0 , options // [ ] )
338
+ def halt ( status // 0 )
344
339
345
- def halt ( status , options ) when is_integer ( status ) or status == :abort do
346
- :erlang . halt ( status , options )
340
+ def halt ( status ) when is_integer ( status ) or status == :abort do
341
+ :erlang . halt ( status )
347
342
end
348
343
349
- def halt ( status , options ) when is_binary ( status ) do
350
- :erlang . halt ( binary_to_list ( status ) , options )
344
+ def halt ( status ) when is_binary ( status ) do
345
+ :erlang . halt ( binary_to_list ( status ) )
351
346
end
352
347
353
348
## Helpers
0 commit comments