Registry.register

Register a new name for a connection.

Associates name with conn in a process-local map. When the thread represented by conn terminates, any names associated with it will be automatically unregistered.

struct Registry(API)
bool
register
(
string name
,)

Parameters

name string

The name to associate with conn.

conn Listener!API

The connection to register.

Return Value

Type: bool

true if the name is available and conn is not known to represent a defunct thread.

Meta