Skip to content
This repository was archived by the owner on Dec 16, 2019. It is now read-only.
This repository was archived by the owner on Dec 16, 2019. It is now read-only.

Pool Completed Threaded Tasks Count Progress. #932

Description

@pkoscisz

I am trying to see how i can get number of tasks that are done at any specific time after i add in the loop
$tasks[$j] = new Task($i, "test{$i}"); $pool->submit($tasks[$j]);

and execute:
while ($pool->collect());`

Basically, i create 1000 tasks that extend threaded and after each one is done i want to increase count value shared by all of them to follow the progress. Tried multiple solutions from google but was not able to make it work.

Any idea?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions