[det]alarm(+Time,
:Callable, -Id)
[det]alarm(+Time,
:Callable, -Id, +Options)Set up an alarm to be signaled Time seconds from now. If the
alarm expires, Callable is called asynchronously. Callable
can be used to raise an exception using throw/1
to abort some execution.
Options is a list of Name(Value) options. Currently
defined options are:
- remove(Bool)
- If
true
(default false
), remove the
alarm-event (as
remove_alarm/1) after it has
been fired.
- install(Bool)
- If
false
(default true
) do not install the
alarm. It must be installed separately using install_alarm/1.