null(3tcl)

πŸ“¦
version 2.3 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 to 5. 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 πŸ‘‘

  • fifo
  • fifo2
  • memchan
  • random
  • zero

🌈 KEYWORDS 🌈

channel, i/o, in-memory channel, null


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