mirror of
https://github.com/danog/amp.git
synced 2025-01-22 13:21:16 +01:00
Add changelog for 2.0.0, fixes #92
This commit is contained in:
parent
d1ef36fa10
commit
5d36c15a1c
20
CHANGELOG.md
20
CHANGELOG.md
@ -1,3 +1,23 @@
|
|||||||
|
2.0.0
|
||||||
|
-----
|
||||||
|
|
||||||
|
* `Amp\reactor()` has been replaced with `Amp\Loop::set()` and `Amp\Loop::get()`.
|
||||||
|
* `Amp\driver()` has been replaced with `Amp\Loop\Factory::create()`.
|
||||||
|
* `Amp\tick()` no longer exists and doesn't have a replacement. Ticks are an internal detail.
|
||||||
|
* Functions for creating and managing watchers are now static methods of `Amp\Loop` instead of functions in the `Amp` namespace.
|
||||||
|
* `once()` is now `delay()` and `immediately()` is `defer()`.
|
||||||
|
* Parameter order for `delay()` and `repeat()` has been changed.
|
||||||
|
* `reference()` and `unreference()` have been added.
|
||||||
|
* `Amp\Pause` has been renamed to `Amp\Delayed` and accepts an optional resolution value now. Additionally `reference()` and `unreference()` methods have been added.
|
||||||
|
* Promise accepting functions have been moved to the `Amp\Promise` namespace.
|
||||||
|
* `Amp\Promise\some()` accepts an additional `$required` parameter.
|
||||||
|
* `Amp\call()`, `Amp\asyncCall()`, `Amp\coroutine()` and `Amp\asyncCoroutine()` have been added.
|
||||||
|
* `Amp\resolve()` has been removed, use `Amp\call()` instead.
|
||||||
|
* `Promise::when()` has been renamed to `Promise::onResolve()`
|
||||||
|
* `Promise::watch()` has been removed, use `Amp\Iterator`, [`amphp/byte-stream`](https://github.com/amphp/byte-stream) or a custom implementation that implements `Amp\Promise` instead and provides dedicated APIs to access the previously data shared via the `watch()` mechanism.
|
||||||
|
* `Amp\Iterator`, `Amp\Emitter` and `Amp\Producer` have been added with several functions in the `Amp\Iterator` namespace.
|
||||||
|
* Various other changes.
|
||||||
|
|
||||||
### 1.2.2
|
### 1.2.2
|
||||||
|
|
||||||
- Fix notice in `NativeReactor` when removing a handle while
|
- Fix notice in `NativeReactor` when removing a handle while
|
||||||
|
Loading…
x
Reference in New Issue
Block a user