Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork258
2.0.0
· 489 commits to 3.x since this release
Amp\reactor()has been replaced withAmp\Loop::set()andAmp\Loop::get().Amp\driver()has been replaced withAmp\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\Loopinstead of functions in theAmpnamespace.once()is nowdelay()andimmediately()isdefer().- Parameter order for
delay()andrepeat()has been changed. reference()andunreference()have been added.
Amp\Pausehas been renamed toAmp\Delayedand accepts an optional resolution value now. Additionallyreference()andunreference()methods have been added.- Promise accepting functions have been moved to the
Amp\Promisenamespace. Amp\Promise\some()accepts an additional$requiredparameter.Amp\call(),Amp\asyncCall(),Amp\coroutine()andAmp\asyncCoroutine()have been added.Amp\resolve()has been removed, useAmp\call()instead.Promise::when()has been renamed toPromise::onResolve()Promise::watch()has been removed, useAmp\Iterator,amphp/byte-streamor a custom implementation that implementsAmp\Promiseinstead and provides dedicated APIs to access the previously data shared via thewatch()mechanism.Amp\Iterator,Amp\EmitterandAmp\Producerhave been added with several functions in theAmp\Iteratornamespace.- Various other changes.
Assets2
Uh oh!
There was an error while loading.Please reload this page.