multiverses v0.7.0 Multiverses.Registry View Source

This module is intended to be a drop-in replacement for Registry, but not all functionality is implemented.

If universes are active, keys in the Registry will be {universe, key} instead of the normal key. A convenience via/2 macro has been provided, which will perform this substitution correctly.

Unimplemented functionality:

Link to this section Summary

Link to this section Functions

See Registry.child_spec/1.

See Registry.count_match/3.

Link to this function

count_match(p1, p2, p3, p4)

View Source

See Registry.count_match/4.

Link to this function

dispatch(registry, key, fun, opts \\ [])

View Source

See Registry.match/3.

See Registry.match/4.

See Registry.meta/2.

See Registry.put_meta/3.

Link to this function

register(registry, key, value)

View Source

Registers the calling process with the Registry. Works as Registry.register/3 does.

See Registry.register_name/2.

See Registry.send/2.

See Registry.start_link/1.

Link to this function

unregister(registry, key)

View Source
Link to this function

unregister_match(p1, p2, p3)

View Source

See Registry.unregister_match/3.

Link to this function

unregister_match(p1, p2, p3, p4)

View Source

See Registry.unregister_match/4.

See Registry.unregister_name/1.

Link to this function

update_value(registry, key, callback)

View Source

generates the correct via term to call this registry.

if :use_multiverses is activated, then the via term will look like:

{:via, Registry, {reg, {universe, key}}}

If it's not, the via term will look like:

{:via, Registry, {reg, key}}

See Registry.whereis_name/1.