mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
changelog: mention CancelTaskException addition
[ci skip]
This commit is contained in:
parent
94928c030a
commit
dc51af8b66
@ -770,6 +770,7 @@ This version features substantial changes to the network system, improving coher
|
||||
- `AsyncPool` uses a new, significantly more performant algorithm for task collection.
|
||||
- `BulkCurlTask` has had the `$complexData` constructor parameter removed.
|
||||
- `BulkCurlTask->__construct()` now accepts `BulkCurlTaskOperation[]` instead of `mixed[]`.
|
||||
- Added `CancelTaskException`, which can be thrown from `Task::onRun()` to cancel a task (especially useful for `ClosureTask`).
|
||||
- `pocketmine\Collectable` has been removed, and is no longer extended by `AsyncTask`.
|
||||
- The following hooks have been added:
|
||||
- `AsyncTask->onError()`: called on the main thread when an uncontrolled error was detected in the async task, such as a memory failure
|
||||
|
Loading…
x
Reference in New Issue
Block a user