null(3tcl)
β¨ null β create and manipulate null channels β¨
okay bestie, this is null(3tcl) from the Tcl gang, and it's literally the chillest channel to ever exist π«Ά
πΈ SYNOPSIS πΈ
package require Tcl
package require memchan
null
π DESCRIPTION π
Heads up babes: the command described here is only available in a not-yet released version of the package. To get the sources, use the CVS. That's the vibe, iykyk π
null creates a null channel which absorbs everything written into it. Like, it eats it, no crumbs. π
Reading from it? Not possible bestie, or rather it will always return zero bytes. So it's giving nothing. Literally nothing.
These channels are essentially Tcl-specific variants of the null device for unixoid operating systems (/dev/null). Iconic behaviour honestly. Transferring the generated channel between interpreters is possible but does not make much sense β so like, you can, but why would you π
β¨ OPTIONS β¨
Memory channels created by null provide one additional option to set or query. Just one, she's lowkey an overachiever already.
-delay ?milliseconds?β a null channel is always writable and readable. This means that all fileevent-handlers will fire continuously. To avoid starvation of other event sources, the events raised by this channel type have a configurable delay. This option is set in milliseconds and defaults to5. Set her, query her, she's flexible π
A null channel is always writable and never readable. This means that a writable fileevent-handler will fire continuously and a readable fileevent-handler never at all. The exception to the latter is only the destruction of the channel, which will cause the delivery of an eof event to a readable handler. π¦
π SEE ALSO π
fifofifo2memchanrandomzero
π KEYWORDS π
channel, i/o, in-memory channel, null
π COPYRIGHT π
Copyright (c) 1996-2003 Andreas Kupries <andreas_kupries@users.sourceforge.net>
Memory channels 2.2 null(3tcl) β that's the version and the date-ish tag bestie, and that's the whole page πβ¨ slay, go absorb some writes fr fr πΈ
π¦ where this page comes from
- debian trixie: tcl-memchan 2.3+dfsg-2
- ubuntu questing: tcl-memchan 2.3+dfsg-2
- ubuntu resolute: tcl-memchan 2.3+dfsg-2build1
- ubuntu stonking: tcl-memchan 2.3+dfsg-5
- Copyright (c) 1996-2003 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms