diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-03-25 10:43:29 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-03-25 11:25:05 +0000 |
| commit | 7cb862f6f6079509dafd466fff83c719cb2fd89e (patch) | |
| tree | 843f92c4d4b2507e88a525b7c56c29d343958e5b /core/stream/io.moon | |
| parent | Value -> Value/Event/IO-Stream (diff) | |
| download | alive-7cb862f6f6079509dafd466fff83c719cb2fd89e.tar.gz alive-7cb862f6f6079509dafd466fff83c719cb2fd89e.zip | |
new core.base.match, update lib
Diffstat (limited to 'core/stream/io.moon')
| -rw-r--r-- | core/stream/io.moon | 9 |
1 files changed, 8 insertions, 1 deletions
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 |
