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:
parent
3ab10de2a2
commit
92e004264c
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user