View Source Multiverses.Registry (multiverses v0.11.0)

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:

  • count_match/3,4
  • match/3,4
  • unregister_match/3,4

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.

See Registry.count_select/2.

See Registry.delete_meta/2.

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.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.

Link to this function

update_value(registry, key, callback)

View Source

See Registry.values/3.