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/event.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/event.moon')
| -rw-r--r-- | core/stream/event.moon | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/core/stream/event.moon b/core/stream/event.moon index 5dbf846..f7b49c4 100644 --- a/core/stream/event.moon +++ b/core/stream/event.moon @@ -26,7 +26,7 @@ class EventStream extends Stream @events = {} @updated = registry.Registry.active!.tick - table.insert @events, {} + table.insert @events, event --- get the sequence of current events (if any). -- @@ -45,11 +45,19 @@ class EventStream extends Stream -- Used to wrap insulate eval-cycles from each other. -- -- @treturn EventStream - fork: => EventStream @type + fork: => @@ @type --- alias for `unwrap`. __call: (...) => @unwrap ... + __tostring: => + "<#{@@__name} #{@type}>" + + --- Stream metatype. + -- + -- @tfield string metatype + metatype: 'event' + --- the type name of the stream. -- -- the following builtin typenames are used: |
