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