Name : perl-Mojo-IOLoop-ForkCall
| |
Version : 0.20
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 4.12
| Date : 2021-01-11 00:34:31
|
Group : Development/Libraries/Perl
| Source RPM : perl-Mojo-IOLoop-ForkCall-0.20-4.12.src.rpm
|
Size : 0.02 MB
| |
Packager : (none)
| |
Summary : (DEPRECATED) run blocking functions asynchronously by forking
|
Description :
DEPRECATED!
This module is deprecated in favor of the Mojolicious core module Mojo::IOLoop::Subprocess, which was inspired by this module. While the author does not intend to remove this module from CPAN it will certainly receive less effort and new code should use the core module. Possibly in the future this will just be an alias to that core module.
Asynchronous programming can be benefitial for performance, however not all functions are written for nonblocking interaction and external processes almost never are. Still, all is not lost.
By forking the blocking call into a new process, the main thread may continue to run non-blocking, while the blocking call evaluates. Mojo::IOLoop::ForkCall manages the forking and will emit an event (or execute a callback) when the forked process completes. Return values are serialized and sent from the child to the parent via an appropriate pipe for your platform.
This module is heavily inspired by AnyEvent::Util\'s \'fork_call\'.
For simple cases in a Mojolicious web app, a helper is also available in Mojolicious::Plugin::ForkCall.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-M/openSUSE_Tumbleweed/noarch |