Reaxive.Subscription.State
Encapsulates the internal state of subscriptions and implements all functions of the family of subscription (simple, composite, and multi-assign).
Summary
add(state, sub) | |
assign(state, sub) | |
delete(state, sub) | |
embedded(state) | |
is_unsubscribed?(state) | |
robust_call(default_value, list) | This macro allows the call to an GenServer. If the process does not exist, then the default value is returned |
start(disp_fun, embedded \\ nil) | |
unsubscribe(s) |
Types
t :: %Reaxive.Subscription.State{active: term, dispose_fun: term, embedded_sub: term}
Functions
Specs:
- add(t, Subscription.t) :: t
Specs:
- assign(t, Subscription.t) :: t
Specs:
- delete(t, Subscription.t) :: t
Specs:
- embedded(t) :: nil | Enumerable.t
Specs:
Macros
This macro allows the call to an GenServer. If the process does not exist, then the default value is returned.
This macros is provided to implement subscriptions easier.