Packages

Declarative subscriptions for Lustre

Current section

Files

Jump to
off_topic src off_topic_ffi.erl
Raw

src/off_topic_ffi.erl

-module(off_topic_ffi).
-export([send_after/3, now_ms/0]).
send_after(Interval, Message, _Callback) ->
erlang:send_after(Interval, self(), lustre:dispatch(Message)),
nil.
now_ms() ->
erlang:system_time(millisecond).