| 1 | package AnyEvent::ProcessPool::Worker; | ||||||||||
| 2 | # ABSTRACT: The task executor code run in the worker process | ||||||||||
| 3 | $AnyEvent::ProcessPool::Worker::VERSION = '0.06'; | ||||||||||
| 4 | use strict; | ||||||||||
| 5 | use warnings; | ||||||||||
| 6 | use v5.10; | ||||||||||
| 7 | require AnyEvent::ProcessPool::Task; | ||||||||||
| 8 | |||||||||||
| 9 | sub run { | ||||||||||
| 10 | 0 | ▶ | local $| = 1; | ||||||||
|
Subroutine
run: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 11 | 0 | ▶ | while (defined(my $line = <STDIN>)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | 0 | my $task = AnyEvent::ProcessPool::Task->decode($line); | |||||||||
| 13 | 0 | $task->execute; | |||||||||
| 14 | 0 | say $task->encode; | |||||||||
| 15 | } | ||||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 1; | ||||||||||
| 19 | |||||||||||
| 20 | __END__ | ||||||||||