AcediaDocumentation

get_comm_channel

Looks up a communication channel by ID.

Returns nil for an ID no channel was ever created for. For a known ID it returns the channel table belonging to the caller's VM, minting it on first lookup, so within one VM it is the same object create_comm_channel handed out and get_comm_channel(id) == channel holds. Another VM asking for the same ID gets its own table carrying Id and Fire, without the Event signal, which exists only in the VM that created the channel.

get_comm_channel(id: number): CommChannel?

Parameters

ParameterTypeDescription
idnumberID returned by create_comm_channel.

See CommChannel for the object’s members.

Aliases: getcommchannel.

On this page