The type of the :subscribe_to option for :consumers and :producer_consumers was changed to document that pid(), {:via, module(), term() and {:global, term()} are accepted as well, but only if the tuple versions are wrapped with options {name, options} so to avoid ambiguity if someone tries to have a {:global, term()} where term() is a list.
In order to enforce that and allow existing codebases to avoid surprises, a warning about deprecation was added in case {:via, module(), term()} or {:global, term()} was passed directly without wrapping with options.
Addresses #260
The type of the
:subscribe_to
option for:consumer
s and:producer_consumer
s was changed to document thatpid()
,{:via, module(), term()
and{:global, term()}
are accepted as well, but only if the tuple versions are wrapped with options{name, options}
so to avoid ambiguity if someone tries to have a{:global, term()}
whereterm()
is a list.In order to enforce that and allow existing codebases to avoid surprises, a warning about deprecation was added in case
{:via, module(), term()}
or{:global, term()}
was passed directly without wrapping with options.