Pevent:
Filter:

Pevent : Pattern : AbstractFunction : Object

Provide an inval for an event stream.
Source: Patterns.sc

This pattern is mainly used in two cases:

using an event pattern as a stream directly
setting some default values before they are processed by the pattern
Pevent is a simpler form of Pchain, so that these are equivalent:

By contrast to Pchain, Pevent uses an Event: *default if nothing is provided.

Class Methods

Pevent.new(pattern, event)

Arguments:

pattern

pattern or stream that returns or modifies events.

event

an event with objects to embed. If none is provided, it uses Event: *default.

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.embedInStream(inval)

.event

.event = value

.pattern

.pattern = value

Examples