1Parallel::ForkManager::UCsheirldC(o3n)tributed Perl DocuPmaernatlalteilo:n:ForkManager::Child(3)
2
3
4

NAME

6       Parallel::ForkManager::Child - role adopted by forked
7       Parallel::ForkManager processes
8

VERSION

10       version 2.02
11

SYNOPSIS

13          use 5.10.0;
14
15          use Parallel::ForkManager;
16
17          my $fm = Parallel::ForkManager->new;
18
19          say "parent does not consume the child role: ", $fm->does('Parallel::ForkManager::Child');
20
21          $fm->start_child(sub{
22               sleep $_;
23               say "but the child does: ", $fm->does('Parallel::ForkManager::Child');
24               say "child $_ says hi!"
25
26          }) for 1..3;
27

DESCRIPTION

29       When the parent Parallel::ForkManager object forks a child process, its
30       forked incarnation consumes this role. The role doesn't do much: it
31       changes the returning values of "is_child" and "is_parent" in the way
32       you'd expect, change "start" so that it'd die if called from within the
33       child, and change the implementation of "finish" to potentially send
34       data back to the parent process.
35

AUTHORS

37       ·   dLux (Szabó, Balázs) <dlux@dlux.hu>
38
39       ·   Yanick Champoux <yanick@cpan.org>
40
41       ·   Gabor Szabo <gabor@szabgab.com>
42
44       This software is copyright (c) 2018, 2016, 2015 by Balázs Szabó.
45
46       This is free software; you can redistribute it and/or modify it under
47       the same terms as the Perl 5 programming language system itself.
48
49
50
51perl v5.28.1                      2018-10-08   Parallel::ForkManager::Child(3)
Impressum