The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Reflex::Callback - Generic callback adapters to simplify calling back

VERSION

version 0.011

SYNOPSIS

Varies. See individual Reflex::Callback subclasses.

DESCRIPTION

Reflex::Callback and its subclasses implement the different types of calbacks that Reflex supports. Reflex::Callbacks provides convenience functions that are almost always used instead of Reflex::Callback objects.

Reflex::Callback's generic interface is a constructor and a single method, deliver(), which routes its parameters to their destination. Subclasses may implement additional methods to support specific use cases.

new

Constructor parameters vary from one subclass to another.

deliver

All deliver() methods take two positional parameters: the name of an event being delivered, and a hashref of named parameters for the callback. Not all subclasses actually use the event name, however.

SEE ALSO

Reflex Reflex::Callback::CodeRef Reflex::Callback::Method Reflex::Callback::Promise Reflex::Callbacks documents callback convenience functions.

"ACKNOWLEDGEMENTS" in Reflex "ASSISTANCE" in Reflex "AUTHORS" in Reflex "BUGS" in Reflex "BUGS" in Reflex "CONTRIBUTORS" in Reflex "COPYRIGHT" in Reflex "LICENSE" in Reflex "TODO" in Reflex