Help for this page

Select Code to Download


  1. or download this
    my $pool = Custom::Utility::ThreadPool->new(maxThreads => 5);
    $pool->enqueue(&func, $arg1, $arg2...);
    $pool->start;
    $pool->blockTillCompletion;
    
  2. or download this
    package Custom::Utility::ThreadPool;
    
    ...
    }
    
    1;