1
0
mirror of https://github.com/danog/amp.git synced 2024-11-30 04:29:08 +01:00

resolve() accepts callables returning generators - added to changelog

This commit is contained in:
Bob Weinand 2016-05-11 18:28:19 +02:00
parent 3ab10de2a2
commit 92e004264c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1.2.0
-----
- resolve() now also accepts callables returning Generators.
### 1.1.1
- Fix memory leak in NativeReactor, retaining an empty array

View File

@ -752,7 +752,7 @@ function coroutine(callable $func) {
* Upon resolution the Generator return value is used to succeed the promised result. If an
* error occurs during coroutine resolution the returned promise fails.
*
* @param \Generator|callable $generator A generator or callable the returns a generator to resolve as a coroutine
* @param \Generator|callable $generator A generator or callable that returns a generator to resolve as a coroutine
* @return \Amp\Promise
*/
function resolve($generator) {