geod24.Registry

Registry implementation for multi-threaded access

This registry allows to look up a connection based on a string. Conceptually, it can be seen as an equivalent to a network router, as it turns addresses into "concrete" routes (pointers).

It was originally part of the std.concurrency module, but was extracted to make it reusable.

There are two kinds of registries: typed ones (Registry), which will provide a bit more type safety for network without intersection, or with a base type, and untyped one (`AnyRegistry). The latter matches real-world heterogenous networks better, as it allows to store unrelated nodes in the same data structure.

Members

Structs

AnyRegistry
struct AnyRegistry

An untyped network router

Registry
struct Registry(API)

A typed network router

Meta