1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 04:24:42 +01:00
amp/lib
Daniel Lowrey 99e38762a7 - Added Reactor::coroutine() method
- Added `Amp\coroutine()` function
- `YieldCommands` "enum" constant class removed -- yield keys now live in
  the reactor class
- New optional `"coroutine"` yield key for self-documenting generator
  yields.
- New optional `"async"` yield key for self-documenting promise yields.
- New `"return"` yield key for specifying the return value of a resolved
  Generator coroutine. If not specified a resolved coroutine result is
  equal to null.
- The final value yielded by a resolved `Generator` is *no longer* used
  as its "return" value. Instead, generators must manually use the new
  `"return"` yield key specifically to designate the value that should
  be used to resolve the promise associated with generator resolution.
- `GeneratorResolver` trait renamed to `CoroutineResolver` and is now an
  abstract class extended by the various `Reactor` implementations.
- Implicit "all" array combinator resolution is now removed. Use the
  explicit form instead:

```php
function() {
    list($a, $b, $c) = (yield 'all' => [$promise1, $promise2, $promise3]);
};
```
2015-02-03 19:41:15 -05:00
..
CoroutineResolver.php - Added Reactor::coroutine() method 2015-02-03 19:41:15 -05:00
Failure.php Lots of changes ... see CHANGELOG for details 2014-12-01 19:45:57 -05:00
functions.php - Added Reactor::coroutine() method 2015-02-03 19:41:15 -05:00
Future.php Lots of changes ... see CHANGELOG for details 2014-12-01 19:45:57 -05:00
LibeventReactor.php - Added Reactor::coroutine() method 2015-02-03 19:41:15 -05:00
NativeReactor.php - Added Reactor::coroutine() method 2015-02-03 19:41:15 -05:00
PrivateFuture.php Lots of changes ... see CHANGELOG for details 2014-12-01 19:45:57 -05:00
Promise.php Lots of changes ... see CHANGELOG for details 2014-12-01 19:45:57 -05:00
Promisor.php Migrate repo to amphp/amp 2014-09-23 00:06:03 -04:00
Reactor.php - Added Reactor::coroutine() method 2015-02-03 19:41:15 -05:00
ReactorFactory.php Lots of changes ... see CHANGELOG for details 2014-12-01 19:45:57 -05:00
SignalReactor.php Migrate repo to amphp/amp 2014-09-23 00:06:03 -04:00
Struct.php Make Amp\Struct abstract to better represent its purpose 2015-01-28 22:30:02 -05:00
Success.php Lots of changes ... see CHANGELOG for details 2014-12-01 19:45:57 -05:00
Unresolved.php Lots of changes ... see CHANGELOG for details 2014-12-01 19:45:57 -05:00
UvReactor.php - Added Reactor::coroutine() method 2015-02-03 19:41:15 -05:00
Watcher.php Add Reactor::__debugInfo() for easier debugging 2014-12-02 00:45:12 -05:00