Bunch v0.3.0 Bunch.Process View Source

A bunch of functions extending functionality of the Process module.

Link to this section Summary

Functions

Sends message when system time reaches given amount of milliseconds

Link to this section Functions

Link to this function

send_at(time, pid \\ self(), msg) View Source
send_at(pos_integer(), pid(), any()) :: reference()

Sends message when system time reaches given amount of milliseconds.

Works the same way as Process.send_after/4 with abs option set to true, but accepts time expressed in milliseconds and as system time instead of monotonic time.

Calls Process.send_after/3 under the hood and returns reference that can be managed by other functions from that module, such as Process.cancel_timer/1