gen_frp v0.1.0 GenFRP.Callback.Time

Summary

Functions

Sends the specified event every milliseconds to the GenFRP process

Sends the current UTC timestamp as DateTime struct as event to the given process, once every milliseconds. (Default: 1000, i.e. once every 1 second)

Functions

every_interval(milliseconds, function_or_event)

Sends the specified event every milliseconds to the GenFRP process.

If function_or_event is a (zero-arity) function, it will be invoked and its return value sent as event to the GenFRP process.

tick(milliseconds \\ 1000)

Sends the current UTC timestamp as DateTime struct as event to the given process, once every milliseconds. (Default: 1000, i.e. once every 1 second)