Aaron Piotrowski
|
aa7b76e842
|
Add awaitable/coroutine-aware loop functions
These functions mirror the standard loop methods, but run returned Generators as coroutines and invoke rethrow() on returned awaitables.
|
2016-08-02 12:48:32 -05:00 |
|
Aaron Piotrowski
|
13908fe2e5
|
Add concat() function
|
2016-08-01 11:10:59 -05:00 |
|
Aaron Piotrowski
|
9055f159e7
|
Revert some() to v1 behavior
|
2016-07-31 00:31:04 -05:00 |
|
Aaron Piotrowski
|
19e6440897
|
Fix native loop timers
|
2016-07-25 10:09:40 -05:00 |
|
Aaron Piotrowski
|
c2caca9d02
|
Fix functions using Subscriber as Awaitable
Use PHP_INT_MAX instead of 0 for infinite interval() count.
|
2016-07-20 08:53:18 -05:00 |
|
Aaron Piotrowski
|
7adc7d8452
|
Remove missed emit() default value
|
2016-07-20 08:52:19 -05:00 |
|
Aaron Piotrowski
|
8e794ba1d7
|
Fix stream()
|
2016-07-19 15:24:05 -05:00 |
|
Aaron Piotrowski
|
24142496d8
|
Rethrow subscriber callback exceptions from loop
|
2016-07-19 15:13:56 -05:00 |
|
Bob Weinand
|
1642bf9195
|
s/settle/any/ which now returns [$errors, $succeeds]
|
2016-07-19 21:39:09 +02: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
|
3e170639c3
|
Remove final from Observer and Subscriber
|
2016-07-19 11:58:20 -05:00 |
|
Aaron Piotrowski
|
dad93a6da0
|
Merge branch 'observable' into v2
|
2016-07-18 23:29:19 -05:00 |
|
Aaron Piotrowski
|
b9d554dd7b
|
Add more functions
|
2016-07-18 23:23:25 -05:00 |
|
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 |
|
Bob Weinand
|
3603d5b1ec
|
EvLoop::enabled() -> supported()
|
2016-06-26 17:35:25 +02:00 |
|
Aaron Piotrowski
|
2a1fde0b44
|
Add automatic loop factory bootstrap
|
2016-06-23 23:37: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
|
986b69907f
|
No need to call keepalive within EvLoop
Loop class handles the details necessary to stop the loop if no reference watchers exist.
|
2016-06-09 12:59:18 -05:00 |
|
Aaron Piotrowski
|
33338324d4
|
Add UvLoop
|
2016-06-09 12:57:46 -05:00 |
|
Aaron Piotrowski
|
666cc42a5f
|
Better ref/unref in EvLoop; fix EvLoopTest
|
2016-06-08 16:03:37 -05:00 |
|
Aaron Piotrowski
|
543d1c5e66
|
Fix repeat timer interval
|
2016-06-08 12:08:00 -05:00 |
|
Aaron Piotrowski
|
a49d333f1b
|
Add EvLoop; Split shared components into Loop
|
2016-06-08 09:22:14 -05:00 |
|
Aaron Piotrowski
|
757778c848
|
Fix check if signal was disabled
Plus some minor tweaks
|
2016-06-08 00:15:36 -05:00 |
|
Aaron Piotrowski
|
8e31310921
|
Fix repeat timer memory leak
|
2016-06-07 12:40:35 -05:00 |
|
Aaron Piotrowski
|
93424c1c6e
|
Enable events in next tick
|
2016-06-07 12:24:53 -05:00 |
|
Aaron Piotrowski
|
f940934a0b
|
Update for latest standard changes
Plus some minor tweaks and more docs.
|
2016-06-07 00:18:59 -05:00 |
|
Bob Weinand
|
c9af067b46
|
Fix delays/intervals being able equal to zero
|
2016-06-04 00:10:47 +02:00 |
|
Aaron Piotrowski
|
666bb332e1
|
Fix some bugs, refactor disable/unreference
|
2016-06-03 10:00:29 -05:00 |
|
Aaron Piotrowski
|
808ce32e3c
|
Fix leftover mentions of Disposable
|
2016-06-02 17:11:25 -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
|
7fb57141d2
|
Cleanup yielded value handling
|
2016-06-02 10:46:22 -05:00 |
|
Aaron Piotrowski
|
5715bec9e1
|
Refactor functions with Emitter
|
2016-06-02 10:43:46 -05:00 |
|
Aaron Piotrowski
|
cef5c90168
|
Drop disposable interface; rename dispose() to unsubscribe()
|
2016-06-02 10:42:22 -05:00 |
|
Aaron Piotrowski
|
acbe2c8237
|
Add Registry; support streams with multiple watchers
|
2016-06-02 09:45:04 -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
|
906d6db47a
|
Update docblocks
|
2016-06-01 11:37:12 -05:00 |
|
Aaron Piotrowski
|
c4e9a19095
|
Rename Emitter to Producer; add new Emitter class
Emitter uses a coroutine to emit values. Updated examples.
|
2016-06-01 11:19:19 -05:00 |
|