zero(3tcl)
π NAME π
zero β create and manipulate zero channels, bestie π
β¨ SYNOPSIS β¨
package require Tcl
package require memchan
zero
π¦ DESCRIPTION π¦
okay so first things first, and this is important: the command described right here is only available in a not-yet released version of the package. Like, it's not out yet. If you want the sources you gotta use the CVS. That's the vibe. π
zero creates a zero channel, and what does a zero channel do? It absorbs literally everything you write into it. Every single byte. Gone. Swallowed. It's giving black hole but make it Tcl π
And reading from a zero channel? It returns the requested number of null bytes. As many as you asked for, all of them null, no notes.
These channels are essentially Tcl-specific variants of the zero device for unixoid operating systems β you know, /dev/zero, the icon π
One lil thing though: transferring the generated channel between interpreters is possible but does not make much sense. So like, you can, but why would you, bestie π
π OPTIONS π
Memory channels created by zero provide one additional option to set or query. Just the one. Slay.
-delay ?milliseconds?β okay so here's the tea: a zero channel is always writable and readable. Which means 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. So yes, there's a lil built-in breather so your other event sources don't get absolutely starved out π«Ά
π SEE ALSO π
fifo, fifo2, memchan, null, random
β KEYWORDS β
channel, i/o, in-memory channel, null, zero
π COPYRIGHT π
Copyright (c) 2004 Pat Thoyts <patthoyts@users.sourceforge.net>
and that's the whole page, bestie β this was the zero(3tcl) manual, living under the Memory channels umbrella, version 2.2 π¦β¨
π¦ 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) 2004 Pat Thoyts <patthoyts@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms