ChannelFlags

Create a ChannelFlags handle with Channel:flags. Methods accept only typed constants from mux.comsys.flags. tostring(channel_flags) produces channel_flags(<name>); it raises mux.unavailable.checking during @lua/check and mux.channel.invalid after the originating channel becomes stale.

Methods

MethodDescription
ChannelFlags:listLists the flags currently set.
ChannelFlags:hasTests a flag’s presence.
ChannelFlags:addSets a flag and reports whether it changed.
ChannelFlags:removeClears a flag and reports whether it changed.

Flag changes run immediately and are not part of the Lua State transaction. The collection becomes stale with its originating Channel and then raises mux.channel.invalid.

See Also