threads::emulate::async - Create emulated thread (part of threads::emulate)
Version 0.0.4
This module is part of hreads::emulate
async { print "New thread...$/" for 1 .. 10 } print "Old thread...$/" for 1 .. 10
If you use the new() method, the thread will not run until you call the run() method of the object. Diferent from using the async() function. The async() function create the object, run the sub in a thread and return the obj.
Run the new thread
Sends a signal for the thread
Gets the pid of the thread
Gets the thread id of the thread
Wait for the thread finish and return the return of the function
If the thread is finished return the return of the sub, else return undef
Fernando Correa de Oliveira, <fco at cpan.org>
<fco at cpan.org>
Please report any bugs or feature requests to bug-threads-emulate-async at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=threads-emulate-async. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-threads-emulate-async at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc threads::emulate::async
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=threads-emulate-async
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/threads-emulate-async
CPAN Ratings
http://cpanratings.perl.org/d/threads-emulate-async
Search CPAN
http://search.cpan.org/dist/threads-emulate/
Copyright 2009 Fernando Correa de Oliveira, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install threads::emulate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm threads::emulate
CPAN shell
perl -MCPAN -e shell install threads::emulate
For more information on module installation, please visit the detailed CPAN module installation guide.