Async.pm (current version: 0.10; last updated 2000-01-26)

You use Async when you have some slow or long-running computation that you want computed in the background while the rest of your program goes about its regular business. Once you have started the computation, you can use the ->ready() method to see whether or not it has finished. If it has finished, you can get the results with the ->result() method.

Async comes with two convenient subclasses. AsyncTimeout runs an asynchronous computation with an automatic timeout; if the timer expires, it stops immediately. AsyncData uses the Storable module to return any Perl value is its result, not just a string. The two subclasses are simple enough that they can serve as examples if you want to extend Async to do something else.

To join a low-volume mailing list for Async announcements, send a blank mail message to mjd-list-async-subscribe@plover.com.


Return to: Universe of Discourse main page | What's new page | Perl Paraphernalia

mjd-perl-async@plover.com