Skip to content

Help #1

Description

@TwinMist

Hi Wondered if you could help me. Trying to use you php-multitasking code to try and replace some processParallel code with uses pcntl_fork and keep getting defunct

addWorker( function (WorkerInfo $info) { echo "hello"; }, 10 ); // add 10 workers to the manager $man->run(); // all workers will be executed in order, no more than 2 workes will be running at the same time $man->wait(); i keep getting PHP Catchable fatal error: Argument 1 passed to {closure}() must be an instance of WorkerInfo, instance of Oasis\Mlib\Multitasking\WorkerInfo given in how do i get this to say hello 10 times. many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions