mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 00:39:45 +00:00
Merge remote-tracking branch 'origin/minor-next' into major-next
This commit is contained in:
commit
c5b0df4578
@ -68,7 +68,10 @@ abstract class AsyncTask extends Runnable{
|
||||
*/
|
||||
private static array $threadLocalStorage = [];
|
||||
|
||||
/** @phpstan-var ThreadSafeArray<int, string>|null */
|
||||
/**
|
||||
* @phpstan-var ThreadSafeArray<int, string>|null
|
||||
* @deprecated
|
||||
*/
|
||||
private ?ThreadSafeArray $progressUpdates = null;
|
||||
|
||||
private ThreadSafe|string|int|bool|null|float $result = null;
|
||||
@ -140,6 +143,8 @@ abstract class AsyncTask extends Runnable{
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*
|
||||
* Call this method from {@link AsyncTask::onRun} (AsyncTask execution thread) to schedule a call to
|
||||
* {@link AsyncTask::onProgressUpdate} from the main thread with the given progress parameter.
|
||||
*
|
||||
@ -154,6 +159,7 @@ abstract class AsyncTask extends Runnable{
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @internal Only call from AsyncPool.php on the main thread
|
||||
*/
|
||||
public function checkProgressUpdates() : void{
|
||||
@ -166,6 +172,8 @@ abstract class AsyncTask extends Runnable{
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*
|
||||
* Called from the main thread after {@link AsyncTask::publishProgress} is called.
|
||||
* All {@link AsyncTask::publishProgress} calls should result in {@link AsyncTask::onProgressUpdate} calls before
|
||||
* {@link AsyncTask::onCompletion} is called.
|
||||
|
Loading…
x
Reference in New Issue
Block a user