class Stream
base Stream interface.
implemented by ValueStream, EventStream, and IOStream.
index
static functions
-
Stream(type, meta)
– construct a new Stream.
stream interface
-
stream:dirty()
– return whether this Stream was changed in the current tick. -
stream:fork()
– create a mutable copy of this Stream. -
stream.type
– the type name of this Stream’s value. -
stream.meta
– documentation metadata.
details
static functions
-
– construct a new Stream.
parameters:
- the type name
- the meta table
stream interface
-
– return whether this Stream was changed in the current tick.
returns:
- (boolean)
-
– create a mutable copy of this Stream.
Used to insulate eval-cycles from each other.
returns:
- (Stream)
-
– the type name of this Stream’s value.
the following builtin typenames are used:
str
- strings,value
is a Lua stringsym
- symbols,value
is a Lua stringnum
- numbers,value
is a Lua numberbool
- booleans,value
is a Lua booleanbang
- trigger signals,value
is a Lua booleanopdef
-value
is an Op subclass- builtin -
value
is a Builtin subclass fndef
-value
is a FnDef instancescope
-value
is a Scope instance
-
– documentation metadata.
an optional table containing metadata for error messages and documentation. The following keys are recognized:
name
: optional namesummary
: single-line description (markdown)examples
: optional list of single-line code examplesdescription
: optional full-text description (markdown)