Reaxive.SubscriptionBehaviour behaviour

Behaviour for subscriptions with default implementations which does not have any subelements.

It implements the protocol Subscription.

Source

Summary

__using__(opts)

Defines the default implementations of subscriptions

Types

t

Macros

__using__(opts)

Defines the default implementations of subscriptions

Source

Callbacks

init/1

Specs:

  • init((() -> :ok)) :: Reaxive.Subscription.State
Source
is_unsub?/1

Specs:

  • is_unsub?(t) :: boolean
Source
is_unsubscribed?/1

Specs:

  • is_unsubscribed?(t) :: boolean
Source
start_link/1

Specs:

  • start_link((() -> :ok)) :: t
Source
unsubscribe/1

Specs:

  • unsubscribe(t) :: :ok
Source