Aaron Piotrowski
|
c561197d1d
|
Remove unused v1 files
|
2016-07-18 23:22:07 -05:00 |
|
Aaron Piotrowski
|
ade997688a
|
Merge branch 'awaitable' into v2
|
2016-07-18 23:20:05 -05:00 |
|
Aaron Piotrowski
|
3f654cbd5b
|
Initial tests plus some fixes
|
2016-07-12 11:20:06 -05:00 |
|
Aaron Piotrowski
|
4ed8e65468
|
Cleaner resolution
|
2016-06-16 23:27:14 -05:00 |
|
Aaron Piotrowski
|
92767755ee
|
Avoid loosing exception thrown from generator after invalid yield
|
2016-06-16 22:44:32 -05:00 |
|
Aaron Piotrowski
|
f553e4f08b
|
Improve coroutine continuation
Duplicated some code for faster coroutine continuation.
|
2016-06-14 23:26:59 -05:00 |
|
Aaron Piotrowski
|
ae182165e5
|
Remove circular reference check
|
2016-06-14 21:53:50 -05:00 |
|
Aaron Piotrowski
|
60d560d70e
|
Add $className param to capture(); other cleanup
|
2016-06-14 21:40:04 -05:00 |
|
Aaron Piotrowski
|
7fb57141d2
|
Cleanup yielded value handling
|
2016-06-02 10:46:22 -05:00 |
|
Aaron Piotrowski
|
055d7d4c52
|
Update docblocks
|
2016-06-01 12:18:11 -05:00 |
|
Aaron Piotrowski
|
cd6939db5a
|
Build awaitable in when()
|
2016-06-01 12:10:46 -05:00 |
|
Aaron Piotrowski
|
b705c144c6
|
Minor tweaks
|
2016-06-01 12:06:43 -05:00 |
|
Aaron Piotrowski
|
da3bbdf90c
|
Null default for Success
|
2016-05-29 10:40:00 -05:00 |
|
Aaron Piotrowski
|
3edab2dfd3
|
Put Loop::get() back
Why do I keep thinking null uses the current loop... bah
|
2016-05-26 18:15:33 -05:00 |
|
Aaron Piotrowski
|
dd70850682
|
Remove driver argument
|
2016-05-26 00:09:50 -05:00 |
|
Aaron Piotrowski
|
ccec7acc94
|
Remove Exception namespace
|
2016-05-24 10:39:19 -05:00 |
|
Aaron Piotrowski
|
6d263ffb84
|
Drop Awaitable from namespace
|
2016-05-23 22:48:28 -05:00 |
|
Aaron Piotrowski
|
8b42994ec9
|
Fix exception creation
|
2016-05-23 21:36:29 -05:00 |
|
Aaron Piotrowski
|
13e807d564
|
Throw on repeated resolution
|
2016-05-23 21:32:41 -05:00 |
|
Aaron Piotrowski
|
6fc6ad1ab5
|
Throw instead of returning Failure object
|
2016-05-23 10:19:48 -05:00 |
|
Aaron Piotrowski
|
28577cf6e6
|
Add Pause; update for timer watcher changes in loop
|
2016-05-23 00:44:35 -05:00 |
|
Aaron Piotrowski
|
378990fe86
|
Use $exception instead of passing as callback data
Less code this way
|
2016-05-22 13:43:37 -05:00 |
|
Aaron Piotrowski
|
918e792093
|
Fix LazyAwaitable
|
2016-05-22 13:42:38 -05:00 |
|
Aaron Piotrowski
|
b572f9be40
|
Rename and move Promise
|
2016-05-22 13:26:53 -05:00 |
|
Aaron Piotrowski
|
de3ada9014
|
Cleanup functions; rename any() to first(); remove resolve()
|
2016-05-22 10:53:13 -05:00 |
|
Aaron Piotrowski
|
b4ea37576e
|
Execute after CoroutineResult
|
2016-05-22 09:25:40 -05:00 |
|
Niklas Keller
|
0b954b2515
|
Fix wait to reuse current default loop
|
2016-05-22 10:57:31 +02:00 |
|
Niklas Keller
|
9f4d38471d
|
Remove 'fail', clean up signatures
|
2016-05-22 10:57:10 +02:00 |
|
Aaron Piotrowski
|
1864b3cbe6
|
Refactor coroutine return for 5.x
|
2016-05-22 00:11:03 -05:00 |
|
Aaron Piotrowski
|
9c541b0faa
|
Rename Lazy to LazyAwaitable
|
2016-05-21 23:47:50 -05:00 |
|
Aaron Piotrowski
|
a6fbc13d89
|
Remove defined check
|
2016-05-21 12:19:48 -05:00 |
|
Aaron Piotrowski
|
345bf78ac2
|
Double-quote strings
|
2016-05-21 12:12:55 -05:00 |
|
Aaron Piotrowski
|
a309a243c2
|
Fix formatting
|
2016-05-21 12:07:08 -05:00 |
|
Aaron Piotrowski
|
c7f64ce2c0
|
Initial commit
|
2016-05-21 09:44:52 -05:00 |
|
Bob Weinand
|
4f2161da5f
|
Fix notices in NativeReactor; prepare tag 1.2.2
|
2016-05-12 14:54:59 +02:00 |
|
Bob Weinand
|
87a5f29ab4
|
Fix potential infinite loop in UvReactor::run(); prepare tag 1.2.1
|
2016-05-12 07:51:11 +02:00 |
|
Bob Weinand
|
452c9b7295
|
Force leading backslashes everywhere
|
2016-05-11 18:53:20 +02:00 |
|
Niklas Keller
|
d9aa8573f0
|
Throw InvalidArgumentException if argument to resolve() is neither callable nor an instance of Generator
|
2016-05-11 18:49:25 +02:00 |
|
Bob Weinand
|
92e004264c
|
resolve() accepts callables returning generators - added to changelog
|
2016-05-11 18:28:19 +02:00 |
|
Chris Wright
|
3ab10de2a2
|
Accept callables to resolve()
|
2016-05-11 17:13:15 +01:00 |
|
Bob Weinand
|
cc7db038b3
|
Fix mem leaks & circular reference; prepare tag 1.1.1
|
2016-05-11 03:36:46 +02:00 |
|
Niklas Keller
|
7046ca47e1
|
Expose combined exceptions in combinator exception
Also fix indent, escape sequences and docs
|
2016-03-09 14:09:15 +01:00 |
|
Bob Weinand
|
d3212d4638
|
NativeReactor needs to always end in stopped state
(under normal circumstances)
|
2016-03-08 12:14:19 +01:00 |
|
Danack
|
a78cc09dac
|
Avoid invalid escape sequences.
|
2016-02-24 12:56:47 +00:00 |
|
Bob Weinand
|
e925017519
|
If no timer has ever been defined, also block indef
Instead of a loop being uselessly repeated each one second (but that doesn't matter in real world actually)
|
2016-02-22 23:29:31 +01:00 |
|
Bob Weinand
|
4b667478f4
|
Fixed bug causing NativeReactor to run at 100% CPU
See also https://github.com/amphp/aerys/issues/68
|
2016-02-22 23:17:50 +01:00 |
|
Bob Weinand
|
5341a4cb92
|
Fix combinator functions, prepare tag 1.0.7
$struct->remaining may be negative in case of bare values passed to combinator functions
|
2016-01-09 15:19:56 +01:00 |
|
Bob Weinand
|
9f76a3f16e
|
Fix NativeReactor::stop() being delayed, prepare tag 1.0.6
|
2015-11-16 03:02:13 +01:00 |
|
Bob Weinand
|
3057329a5c
|
Update tests for CombinatorException, prepare tag 1.0.5
|
2015-09-30 14:31:53 +02:00 |
|
Niklas Keller
|
00898cd6af
|
Convert RuntimeException to CombinatorException
|
2015-09-23 22:56:55 +02:00 |
|