Daniel Lowrey
bf89a74035
fix composer for php7 requirement
2015-04-29 12:07:51 -04:00
Daniel Lowrey
6e405ad75c
update readme
2015-04-29 11:36:26 -04:00
Daniel Lowrey
7762f0020d
Add travis support
2015-04-29 11:29:09 -04:00
Daniel Lowrey
d4256833c9
update composer.json
2015-04-29 11:26:23 -04:00
Daniel Lowrey
06981ab6ea
fix bad anon class syntax
2015-04-29 11:24:26 -04:00
Daniel Lowrey
82b89043da
update changelog
2015-04-29 11:01:45 -04:00
Daniel Lowrey
22b308793a
update support files
2015-04-27 15:16:26 -04:00
Daniel Lowrey
3909efd56e
Merge branch 'v1.0.0-dev'
...
Conflicts:
lib/CoroutineResolver.php
lib/functions.php
2015-04-27 15:02:58 -04:00
Daniel Lowrey
693ce52d99
Merge pull request #25 from staabm/patch-2
...
drop $forceNew param in getReactor()
2015-04-27 14:51:21 -04:00
Daniel Lowrey
1565e23d46
replace call_user_func() reference
2015-04-27 14:33:41 -04:00
Daniel Lowrey
7cb09edf29
Use anonymous classes
2015-04-27 14:33:17 -04:00
Daniel Lowrey
446eded441
Remove superfluous parameter
2015-04-27 14:30:07 -04:00
Markus Staab
f004d83cf1
drop $forceNew param in getReactor()
...
At runtime there are no use cases where one would like to re-create the reactor. only multi instance scenario is unit tests, but those don't need to be covered in the public api.
2015-04-27 17:57:44 +02:00
Daniel Lowrey
60f1b4484e
update docblock
2015-04-03 12:52:17 -04:00
Daniel Lowrey
812e1fb6b4
Reactor API updates, NativeReactor refactor
2015-04-03 11:56:16 -04:00
Daniel Lowrey
2aa4c0c357
Remove libevent reactor until pecl/libevent supports php7
2015-04-03 11:55:23 -04:00
Daniel Lowrey
b57f6eb6bf
Add explanatory comment
2015-03-28 10:05:09 -04:00
Daniel Lowrey
fa080b66aa
Remove superfluous is_object() check
2015-03-28 10:03:27 -04:00
Daniel Lowrey
9a1581c91d
Bind local vars to closure
2015-03-25 14:17:26 -04:00
Daniel Lowrey
654e82f277
minor cleanup
2015-03-23 11:07:40 -04:00
Daniel Lowrey
6375cdd522
Minor documentation rewording
2015-03-19 12:01:09 -04:00
Daniel Lowrey
abd5d34d92
Remove deprecated ReactorFactory
2015-03-19 11:59:20 -04:00
Daniel Lowrey
203855d22c
minor docblock update
2015-03-19 11:39:57 -04:00
Daniel Lowrey
d1b919d9fc
Avoid extra Closure instantiation in PrivateFuture
2015-03-19 11:39:38 -04:00
Daniel Lowrey
68185a6cf1
Promisor::update() now accepts variadic args
2015-03-19 11:26:56 -04:00
Daniel Lowrey
cd84401b6f
Remove superfluous Reactor::at() method
2015-03-19 11:19:19 -04:00
Daniel Lowrey
af2335cf50
Remove deprecated wait functionality
2015-03-19 11:17:50 -04:00
Daniel Lowrey
16be668192
Add scalar types, update docblocks
2015-03-19 11:15:07 -04:00
Daniel Lowrey
620f798b13
Add new Pause promise
2015-03-18 14:05:27 -04:00
Daniel Lowrey
018564e47b
Update tests
2015-03-18 12:13:17 -04:00
Daniel Lowrey
2e1ef0b739
Implement Closure::call()
2015-03-16 15:03:52 -04:00
Daniel Lowrey
834255163c
Refactor coroutine functionality
2015-03-16 15:00:17 -04:00
Daniel Lowrey
87ca482e14
Merge pull request #24 from PeeHaa/guide-fixes
...
Guide fixes
2015-02-23 14:03:39 -05:00
PeeHaa
14a4fc054a
Fixed typo
2015-02-21 16:10:25 +01:00
PeeHaa
2631403ecd
Fixed NativeReactor example by making the reactor instance available in scope
2015-02-21 15:59:07 +01:00
PeeHaa
916306533a
Fixed two typos
2015-02-21 15:40:38 +01:00
Daniel Lowrey
3eebc1740d
Merge pull request #22 from staabm/patch-2
...
Fixed typo
2015-02-19 23:11:03 -05:00
Markus Staab
2a1c086390
Fixed typo
...
Credits to @bwoebi
2015-02-18 20:14:41 +01:00
Daniel Lowrey
446e09a95d
Update changelog for v0.16.0
2015-02-18 09:59:48 -05:00
Daniel Lowrey
a573e195a6
Allow null implicit yields
2015-02-18 09:53:55 -05:00
Daniel Lowrey
15a5e08f75
Move guide doc into main directory
2015-02-08 23:36:32 -05:00
Daniel Lowrey
d4a6317010
Add guide docs to main repo
2015-02-06 01:31:22 -05:00
Daniel Lowrey
913295dc6b
Merge branch 'lyrixx-psr'
2015-02-05 23:55:32 -05:00
Daniel Lowrey
24acba4486
Merge branch 'psr' of https://github.com/lyrixx/amp into lyrixx-psr
2015-02-05 23:54:12 -05:00
Daniel Lowrey
b1a5d113a8
Add tests for Promisor::update()
2015-02-05 23:44:11 -05:00
Daniel Lowrey
d9f46da021
Merge pull request #20 from lyrixx/composer2
...
Removed useless configuration in composer.json
2015-02-05 14:03:36 -05:00
Grégoire Pineau
01d50d10f9
Fixex typos
2015-02-05 18:17:05 +01:00
Grégoire Pineau
63305d486f
Removed useless configuration in composer.json
2015-02-05 14:40:18 +01:00
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
Daniel Lowrey
7e451251ab
Make Amp\Struct abstract to better represent its purpose
2015-01-28 22:30:02 -05:00