mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
phpdoc armageddon for master, pass 1
This commit is contained in:
@@ -96,8 +96,6 @@ abstract class AsyncTask extends \Threaded{
|
||||
/**
|
||||
* Returns whether this task has finished executing, whether successfully or not. This differs from isRunning()
|
||||
* because it is not true prior to task execution.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isFinished() : bool{
|
||||
return $this->finished or $this->isCrashed();
|
||||
@@ -118,9 +116,6 @@ abstract class AsyncTask extends \Threaded{
|
||||
return $this->cancelRun;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function hasResult() : bool{
|
||||
return $this->result !== null;
|
||||
}
|
||||
@@ -136,9 +131,6 @@ abstract class AsyncTask extends \Threaded{
|
||||
$this->submitted = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isSubmitted() : bool{
|
||||
return $this->submitted;
|
||||
}
|
||||
@@ -210,7 +202,6 @@ abstract class AsyncTask extends \Threaded{
|
||||
* Objects stored in this storage can be retrieved using fetchLocal() on the same thread that this method was called
|
||||
* from.
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $complexData the data to store
|
||||
*/
|
||||
protected function storeLocal(string $key, $complexData) : void{
|
||||
@@ -232,8 +223,6 @@ abstract class AsyncTask extends \Threaded{
|
||||
* If you used storeLocal(), you can use this on the same thread to fetch data stored. This should be used during
|
||||
* onProgressUpdate() and onCompletion() to fetch thread-local data stored on the parent thread.
|
||||
*
|
||||
* @param string $key
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
* @throws \InvalidArgumentException if no data were stored by this AsyncTask instance.
|
||||
|
Reference in New Issue
Block a user