-module(repeatedly). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]). -export([call/2, stop/1]). -export_type([repeater/0]). -type repeater() :: any(). -spec call(integer(), fun((integer()) -> any())) -> repeater(). call(Delay_ms, Function) -> repeatedly_ffi:call(Delay_ms, Function). -spec stop(repeater()) -> nil. stop(Repeater) -> repeatedly_ffi:stop(Repeater).