multiverses v0.1.0 Multiverses.Registry View Source

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

Link to this section Summary

Functions

retrives all processes stored in the registry by their keys. If multiverses are activated, then this shards the registry by universe, and the caller will only be able to see processes in its universe.

retrives a process stored in the registry by its key. If multiversess are activated, then this shards the registry by universe, and the caller will only be able to see processes in its universe.

Registers the calling process with the Registry. Works as Registry.register/3, except the third value parameter on register/3 will be dropped, as that is where the universe id will be stored.

Link to this section Functions

retrives all processes stored in the registry by their keys. If multiverses are activated, then this shards the registry by universe, and the caller will only be able to see processes in its universe.

Link to this macro

get(registry, key)

View Source (macro)

retrives a process stored in the registry by its key. If multiversess are activated, then this shards the registry by universe, and the caller will only be able to see processes in its universe.

Link to this macro

register(registry, key, _)

View Source (macro)

Registers the calling process with the Registry. Works as Registry.register/3, except the third value parameter on register/3 will be dropped, as that is where the universe id will be stored.

If multiverses have not been activated, then nil is placed as the registry value.