barrel_p2p_reminder (barrel_p2p v0.1.0)
View SourceSummary
Functions
Cancel a pending reminder cluster-wide. Stability: beta.
Set a reminder for Key to fire at absolute wall-clock FireAtMs (milliseconds, erlang:system_time(millisecond) scale), delivering Payload on whichever node owns Key at fire time. Re-setting an existing Key replaces it. Stability: beta.
Like remind/3 but DelayMs from now; converted to an absolute target so every node agrees on the fire time. Stability: beta.
Types
Functions
-spec cancel_reminder(key()) -> ok.
Cancel a pending reminder cluster-wide. Stability: beta.
Set a reminder for Key to fire at absolute wall-clock FireAtMs (milliseconds, erlang:system_time(millisecond) scale), delivering Payload on whichever node owns Key at fire time. Re-setting an existing Key replaces it. Stability: beta.
-spec remind_after(key(), non_neg_integer(), payload()) -> ok.
Like remind/3 but DelayMs from now; converted to an absolute target so every node agrees on the fire time. Stability: beta.
-spec subscribe(pid()) -> ok.
-spec unsubscribe(pid()) -> ok.