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
| Method | Description |
|---|---|
ChannelFlags:list | Lists the flags currently set. |
ChannelFlags:has | Tests a flag’s presence. |
ChannelFlags:add | Sets a flag and reports whether it changed. |
ChannelFlags:remove | Clears 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.