1
0
mirror of https://github.com/danog/amp.git synced 2024-12-15 02:47:30 +01:00
Commit Graph

1414 Commits

Author SHA1 Message Date
Aaron Piotrowski
0992eaea89 CallableFromMethod -> CallableMaker 2016-08-30 10:34:17 -05:00
Aaron Piotrowski
448391531e Add CallableFromMethod trait 2016-08-29 18:35:49 -05:00
Aaron Piotrowski
220c969e12 Allow Amp\*() loop callbacks to return values
Asserting that the function be void if not a Generator turned out to be just annoying rather than helpful.
2016-08-29 12:40:13 -05:00
Aaron Piotrowski
44aee8de47 Restrict callback returns to void or Generator 2016-08-26 16:29:57 -05:00
Aaron Piotrowski
edf2984863 Update Observable-based functions
Some of the changes to Observables broke functions using them.
2016-08-23 13:22:24 -05:00
Aaron Piotrowski
f46912d387 Fix bug on null emits 2016-08-23 13:18:56 -05:00
Aaron Piotrowski
6e1c1db5a6 Drop special behavior when emitting an observable 2016-08-23 13:17:59 -05:00
Aaron Piotrowski
3ce0c0dd37 Resolve with boolean, not emitted value 2016-08-23 12:50:16 -05:00
Bob Weinand
c89f10eef0 Make Observer::drain() public 2016-08-23 16:21:05 +02:00
Aaron Piotrowski
5f1354bf1a Add drain() method to Observer 2016-08-23 08:50:04 -05:00
Aaron Piotrowski
ddefcf21f9 Implement Observable in Success and Failure 2016-08-22 16:21:47 -05:00
Aaron Piotrowski
ef143534e3 Fix issue with resolved Observer not receiving all values 2016-08-22 10:54:39 -05:00
Aaron Piotrowski
96e1178b89 Code, docblock, and comment cleanup 2016-08-17 22:25:54 -05:00
Aaron Piotrowski
a8d7d71a1a Drop Future and Producer 2016-08-17 21:17:31 -05:00
Aaron Piotrowski
d4e83490c2 Drop unsubscribing from Observable 2016-08-17 21:11:03 -05:00
Aaron Piotrowski
36bfc3e20a Fix namespace 2016-08-16 23:27:10 -05:00
Aaron Piotrowski
8eda038155 Use strict types in tests; update some tests 2016-08-16 16:39:25 -05:00
Aaron Piotrowski
2317a3aa37 Unsubscribe from emitted observable if failed 2016-08-16 16:31:09 -05:00
Aaron Piotrowski
84c2572e0a Prevent fail call after resolution 2016-08-16 13:30:32 -05:00
Aaron Piotrowski
bdc26e1e8b Combine use statements 2016-08-16 13:07:51 -05:00
Aaron Piotrowski
dae4eb90da Better Emitter fix; fail observable if emitted awaitable fails 2016-08-16 13:07:38 -05:00
Aaron Piotrowski
a8a5a1b3a5 Fix Emitter 2016-08-16 02:28:47 -05:00
Aaron Piotrowski
888229d667 Use strict types 2016-08-15 23:46:26 -05:00
Bob Weinand
7c9a004024 Fix composer build (0.2 for event-loop) 2016-08-15 15:47:26 +02:00
Bob Weinand
6a87658ad8 Remove bogus .coveralls.yml file 2016-08-15 15:41:28 +02:00
Bob Weinand
4e52e68f3a Fix travis run the second 2016-08-15 15:32:54 +02:00
Bob Weinand
0f5460fd0f Do not run memory leak testing test with code coverage active 2016-08-15 15:08:09 +02:00
Bob Weinand
83ceb7f5f8 Fix PHP_INT_MIN not defined in 5.5 2016-08-14 22:44:49 +02:00
Bob Weinand
c503bbf46d Fix composer.json 2016-08-14 22:41:36 +02:00
Bob Weinand
eedc0fb3b8 Add travis config 2016-08-14 22:35:22 +02:00
Bob Weinand
e7d629e58f Fix signals not being dispatched in NativeLoop
This was the case when at least one expired and non-expired timer existed.
2016-08-14 22:29:30 +02:00
Bob Weinand
f82999bb1b Update according to most recent spec changes 2016-08-14 22:27:52 +02:00
Niklas Keller
cef92e9770 Doc fixes for Coroutine 2016-08-14 19:17:08 +02:00
Bob Weinand
dcf17e3f98 Optimize Producer & remove wait until first subscribe
Also delay first emit in Emitter until next tick
2016-08-14 16:57:17 +02:00
Bob Weinand
08d65bcd63 Make Subscriber not caring about $id type 2016-08-14 04:47:48 +02:00
Bob Weinand
80265b726e Do not have final methods in Struct, functions may need to be overridden 2016-08-14 04:41:47 +02:00
Aaron Piotrowski
42d9b25c3d Temp var unnecessary 2016-08-13 10:24:55 -05:00
Aaron Piotrowski
7bc08b9a6a Replace leftover LogicExceptions exceptions with Error 2016-08-12 16:58:53 -05:00
Aaron Piotrowski
496152282e Update Amp\coroutine() tests 2016-08-12 16:56:13 -05:00
Aaron Piotrowski
2ff32c2d6b Remove unnecessary default parameter values 2016-08-12 16:38:36 -05:00
Aaron Piotrowski
66c38e1480 Refactor Amp\coroutine()
Any function can now be passed to this function, which now returns a function returning an awaitable.
2016-08-12 14:50:44 -05:00
Aaron Piotrowski
69ec812bc0 Require PHP 7 2016-08-11 14:52:40 -05:00
Aaron Piotrowski
658edf33f7 Use Closure::fromCallable() in 7.1 2016-08-11 13:33:51 -05:00
Bob Weinand
dff456ce83 Merge pull request #89 from async-interop/state
Rename fetch/storeState to get/setState
2016-08-10 12:18:56 +01:00
Aaron Piotrowski
ea66677a50 Update for Driver changes in spec 2016-08-06 08:58:37 -05:00
Niklas Keller
74e2577b25 Rename fetch/storeState to get/setState 2016-08-06 14:49:08 +02:00
Cees-Jan Kiewiet
4bdc40e9c1 Merge pull request #87 from async-interop/driver-registry-merge
Merge Registry into Driver
2016-08-06 14:31:44 +02:00
Niklas Keller
8ece6be6cf Make final PSR-2 compatible 2016-08-05 14:11:59 +02:00
Niklas Keller
39b7ddd366 Make abstract PSR-2 compatible 2016-08-05 13:56:26 +02:00
Niklas Keller
6cde9f5495 Merge Registry into Driver 2016-08-04 21:08:52 +02:00