We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An interesting bug recently surfaced in PM: pmmp/PocketMine-MP@61077c4
In my opinion, a worker should always be considered "running" as long as it hasn't shut down, because internally what's essentially happening is this:
while(!$this->shutdown && $this->queue->count() > 0){ $task = $this->queue->synchronized(function() : void{ while($this->queue->count() === 0){ $this->queue->wait(); } return $this->queue->shift(); }); $task->run(); }
If a Worker was implemented in userland, this wouldn't be a problem.
Worker
The text was updated successfully, but these errors were encountered:
No branches or pull requests
An interesting bug recently surfaced in PM: pmmp/PocketMine-MP@61077c4
In my opinion, a worker should always be considered "running" as long as it hasn't shut down, because internally what's essentially happening is this:
If a
Worker
was implemented in userland, this wouldn't be a problem.The text was updated successfully, but these errors were encountered: