1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 04:24:42 +01:00
Commit Graph

32 Commits

Author SHA1 Message Date
Aaron Piotrowski
24142496d8 Rethrow subscriber callback exceptions from loop 2016-07-19 15:13:56 -05:00
Aaron Piotrowski
bec838b693 Remove leftover exception class
No longer needed as Subscriber is not an awaitable.
2016-07-19 13:30:28 -05:00
Aaron Piotrowski
70123b9a44 Update Producer::resolve(); fix emitting observable 2016-07-19 13:19:44 -05:00
Aaron Piotrowski
9839343bbb Remove default value from emit 2016-07-19 13:10:15 -05:00
Aaron Piotrowski
13a6fc59c4 Producer::init() -> private 2016-07-19 12:42:58 -05:00
Aaron Piotrowski
32b4721c5e Subscriber no longer implements Awaitable 2016-07-19 12:40:16 -05:00
Aaron Piotrowski
90d744537e protected -> private in internal traits 2016-07-19 12:32:43 -05:00
Aaron Piotrowski
dad93a6da0 Merge branch 'observable' into v2 2016-07-18 23:29:19 -05:00
Aaron Piotrowski
4ed8e65468 Cleaner resolution 2016-06-16 23:27:14 -05:00
Aaron Piotrowski
ae182165e5 Remove circular reference check 2016-06-14 21:53:50 -05:00
Aaron Piotrowski
548a9fd556 Fix bug when emitting failed awaitable and waiting for a subscriber 2016-06-02 17:05:22 -05:00
Aaron Piotrowski
cef5c90168 Drop disposable interface; rename dispose() to unsubscribe() 2016-06-02 10:42: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
906d6db47a Update docblocks 2016-06-01 11:37:12 -05:00
Aaron Piotrowski
cc431a0374 Prevent emit without subscribers 2016-05-31 23:02:59 -05:00
Aaron Piotrowski
eb49e6e8ff Resolve emit with observable result instead of emitting
Emitting another observable will emit values from the emitted observable, then resolve the awaitable returned from emit with the observable result
2016-05-31 16:23:01 -05:00
Aaron Piotrowski
57e25f9354 Simpler implementation 2016-05-29 11:46:58 -05:00
Aaron Piotrowski
4a2baa670e Subscriber model 2016-05-27 15:44:01 -05:00
Aaron Piotrowski
99eecc1a3f Refactor 2016-05-26 18:20:05 -05:00
Aaron Piotrowski
b436a56869 Remove unused property 2016-05-24 12:09:52 -05:00
Aaron Piotrowski
a9362780ed Initial commit 2016-05-24 11:47:14 -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
13e807d564 Throw on repeated resolution 2016-05-23 21:32:41 -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
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
a309a243c2 Fix formatting 2016-05-21 12:07:08 -05:00
Aaron Piotrowski
c7f64ce2c0 Initial commit 2016-05-21 09:44:52 -05:00