From 7cb862f6f6079509dafd466fff83c719cb2fd89e Mon Sep 17 00:00:00 2001 From: s-ol Date: Wed, 25 Mar 2020 11:43:29 +0100 Subject: new core.base.match, update lib --- core/stream/io.moon | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'core/stream/io.moon') diff --git a/core/stream/io.moon b/core/stream/io.moon index fcaeb9f..e3e59a2 100644 --- a/core/stream/io.moon +++ b/core/stream/io.moon @@ -24,6 +24,13 @@ class IOStream extends EventStream -- @tparam string type the typename of this stream. new: (type) => super type + --- create a mutable copy of this stream. + -- + -- Used to wrap insulate eval-cycles from each other. + -- + -- @treturn IOStream + fork: => @ + --- poll for changes. -- -- Called every frame by the main event loop to update internal state. @@ -32,7 +39,7 @@ class IOStream extends EventStream --- check whether this adapter requires processing. -- -- Must return a boolean indicating whether `Op`s that refer to this instance - -- via `Input.io` should be notified (via `Op:tick`). May be called multiple + -- via `Input.hot` should be notified (via `Op:tick`). May be called multiple -- times. May be called before `tick` on the first frame after construction. -- -- If this is not overrided, the `EventStream` interface can be used, see -- cgit v1.2.3