routine emit
1 | class Mu |
1.1 | (Mu) method emit |
2 | class Supplier |
2.1 | (Supplier) method emit |
3 | language documentation Independent routines |
3.1 | (Independent routines) sub emit |
Documentation for routine emit
assembled from the following types:
class Mu
From Mu
(Mu) method emit
method emit()
Emits the invocant into the enclosing supply or react block.
react# OUTPUT:# received Str (foo)# received Int (42)# received Rat (0.5)
class Supplier
From Supplier
(Supplier) method emit
method emit(Supplier: Mu \value)
Sends the given value to all of the taps on all of the supplies created by Supply
on this Supplier
.
language documentation Independent routines
From Independent routines
(Independent routines) sub emit
Defined as
sub emit(\value --> Nil)
If used outside any supply or react block, throws an exception emit without supply or react
. Within a Supply block, it will add a message to the stream.
my = supply.tap( -> );
See also the page for emit
methods.