Repository navigation
2.0.0 RC1
Pre-release
Pre-release
This is a release candidate for Amp v2.0.0. Please test it carefully and provide any feedback you have.
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.