changelog: mention CancelTaskException addition

[ci skip]
This commit is contained in:
Dylan K. Taylor 2021-04-19 14:00:54 +01:00
parent 94928c030a
commit dc51af8b66
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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