list_channels

Lists every live communication channel in deterministic name order.

Function

Synopsis

mux.comsys.list_channels( )

Arguments

None.

Returns

Channel[] channels
A dense array of channel handles sorted case-insensitively by name, with the original spelling as the tie-breaker.

Raises

  • mux.unavailable.checking during @lua/check.
  • mux.internal if the native registry count changes while the channel list is copied.

Example

for _, channel in ipairs(mux.comsys.list_channels()) do
  mux.log("channels.log", channel:name())
end

See Also