Thread::Csp::Promise - Promises for thread return values.
version 0.003
my $promise = Thread::Csp->spawn('Module', 'Module::function', $input, $output); $promise->get;
This represents the return value of a thread, as return by spawn. This class is highly experimental and may disappear in the future.
This waits for the thread to finish, and will either return its value, or throw the exception that it died with. It may be called any number of times.
This returns true if the promise is finished.
This will cause $value to be written to $handle when the promise finishes, unless it's already being waited upon.
$value
Leon Timmermans <leont@cpan.org>
This software is copyright (c) 2021 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Thread::Csp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Thread::Csp
CPAN shell
perl -MCPAN -e shell install Thread::Csp
For more information on module installation, please visit the detailed CPAN module installation guide.