Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use Dancer;
get '/' => sub {
fork and return "Content!\n";
sleep 10; # do your actual work here
warn "Child process done\n";
exit;
};
dance;
what does the author try to do?
when #do your actual work here# , completes how are the results returned to the client?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dancer and forking
by 1nickt (Canon) on Apr 30, 2018 at 10:01 UTC | |
by Anonymous Monk on Apr 30, 2018 at 10:04 UTC | |
by shmem (Chancellor) on Apr 30, 2018 at 10:24 UTC | |
by Anonymous Monk on Apr 30, 2018 at 11:42 UTC | |
by 1nickt (Canon) on Apr 30, 2018 at 10:41 UTC | |
by Anonymous Monk on Apr 30, 2018 at 11:31 UTC | |
by 1nickt (Canon) on Apr 30, 2018 at 11:45 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |