View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Rocco Caputo > Reflex-0.099 > docs/


Annotate this POD


New  3
Open  0
View/Report Bugs
Source   Latest Release: Reflex-0.100

Gathering callbacks. ^

Reflex::Role::Reactive Has the cb() member. BUILD Maps constructor parameters to callbacks. Maps callback types to watchers: discrete callbacks = discrete watchers role callbacks = role watchers no callbacks = unwatched (promise?)

Reflex::Role::Reactive::BUILD calls cb_gather() ^

emit() syntax is preserved. 1. Role::Reactive handles it normally. 2. Local delivery is through the callback object.

$self->emit( event => \%args );

Callback constructor parameter. ^

Role constructor parameter. ^

Promise. ^

Watcher. ^

Promise Again ^

The current syntax is too verbose.

$watcher has no purpose except to call watch().

Perhaps $watcher could be replaced by a Promise class that watches and then returns events? Similar to PromiseThing in

syntax highlighting: