Reaxive.CompositeSubscription

Implements a subscription which may have a list of embedded subscriptions. If this outer subscription is unsubscribed, so are the inner subscriptions.

It implements the protocol Subscription.

Source

Summary

add(composite_subscription, to_add)
delete(composite_subscription, to_delete)
init(disp_fun)
is_unsubscribed?(composite_subscription)
start_link(disp_fun)
unsubscribe(composite_subscription)

Types

t

The type of a simple subscription

Functions

add(composite_subscription, to_add)

Specs:

Source
delete(composite_subscription, to_delete)

Specs:

Source
init(disp_fun)

Specs:

  • init((() -> :ok)) :: Reaxive.Subscription.State
Source
is_unsubscribed?(composite_subscription)
Source
start_link(disp_fun)

Specs:

  • start_link((() -> :ok)) :: t
Source
unsubscribe(composite_subscription)

Specs:

  • unsubscribe(t) :: :ok
Source