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

Pool Completed Threaded Tasks Count Progress. #932

Open
pkoscisz opened this issue Mar 5, 2019 · 0 comments
Open

Pool Completed Threaded Tasks Count Progress. #932

pkoscisz opened this issue Mar 5, 2019 · 0 comments

Comments

@pkoscisz
Copy link

pkoscisz commented Mar 5, 2019

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant