fileevent
fileevent channelId event ?script?
Runs the script from the event loop when the channel is readable or writable. An empty script removes the handler. chan event is the same command in Tcl.
Facts
- Capability:
event. A new interpreter does not have this command. See Limits and capabilities. - Compute cost: one compute unit for the call, and more for the commands that it runs.