null(n)
β¨ null(n) β¨
okay bestie, welcome to the null manual page π this one lives in the memchan family, so it's all about channels, and it's short and sweet. buckle up π
π NAME π
null β create and manipulate null channels π³οΈβ¨
π¦ SYNOPSIS π¦
package require Tcl
package require memchan
null
π DESCRIPTION π
heads up, bestie: the command described right here is only available in a not-yet released version of the package. use the CVS to get the sources. no cap. π«
null creates a null channel, and a null channel literally absorbs everything you write into it. that's its whole thing. it's giving black hole but make it i/o π³οΈπ
Reading from it is not possible β or rather, it will always return zero bytes. so like, you can try, and it'll just hand you nothing. iconic behaviour tbh.
These channels are essentially Tcl-specific variants of the null device for unixoid operating systems (/dev/null). you know the vibe. π«Ά
Transferring the generated channel between interpreters is possible but does not make much sense. like sure, you could, bestie, but why π
β¨ OPTIONS β¨
Memory channels created by null provide one additional option to set or query. one. singular. the whole menu. π
-delay?milliseconds? β okay so, a null channel is always writable and readable (the manpage really said that, we'll get to it π). 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. β±οΈβ¨
π« the plot twist π«
A null channel is always writable and never readable. yes bestie, the page says both things, we're just relaying the lore, don't shoot the messenger π
This means that:
- a writable fileevent-handler will fire continuously π₯
- a readable fileevent-handler will never fire at all π¦
The exception to that last one? only the destruction of the channel, which will cause the delivery of an eof event to a readable handler. so it's one final goodbye event, and then nothing. periodt. ππ
π SEE ALSO π
fifofifo2memchanrandomzero
go read those too, bestie, they're the whole friend group πΈ
π KEYWORDS π
channeli/oin-memory channelnull
π COPYRIGHT π
Copyright (c) 1996-2003 Andreas Kupries <andreas_kupries@users.sourceforge.net>
and that's the whole page, bestie!! π«Άβ¨ this was Memory channels version 2.2, null(n), and yeah β that footer date energy is giving vintage but the knowledge is timeless π
π mwah, go forth and write into the void π³οΈπ
π¦ where this page comes from
- fedora 43: memchan 2.3-34.fc43 Β· LicenseRef-Callaway-MIT AND LicenseRef-Callaway-Public-Domain
- fedora 43: memchan 2.3-34.fc43 Β· LicenseRef-Callaway-MIT AND LicenseRef-Callaway-Public-Domain
- fedora 44: memchan 2.3-35.fc44 Β· LicenseRef-Callaway-MIT AND LicenseRef-Callaway-Public-Domain
- fedora 44: memchan 2.3-35.fc44 Β· LicenseRef-Callaway-MIT AND LicenseRef-Callaway-Public-Domain
- 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