1
0
mirror of https://github.com/danog/amp.git synced 2024-12-13 09:57:25 +01:00
Commit Graph

1542 Commits

Author SHA1 Message Date
Niklas Keller
aeb5de16d9 Add failing Coroutine test 2019-05-31 11:38:02 -05:00
Niklas Keller
a660af794b Annotate that throwIfRequested might throw CancelledException 2019-05-30 15:13:38 +02:00
Markus Staab
4e822395c9 Fix typo (#268) 2019-04-18 18:41:34 +02:00
Aaron Piotrowski
272f78dcb2
Note method to retreive array of exceptions 2019-03-02 09:22:06 -06:00
Aaron Piotrowski
19bcf9b33d
Use shared style repo 2019-02-25 23:09:26 -06:00
Aaron Piotrowski
4e3251cba9
Test on PHP 7.3 & 7.4 2019-02-25 23:04:03 -06:00
Aaron Piotrowski
ef83723a79
Fix signal handler in NativeDriver when used with pcntl_async_signals
Fixes #264.
2019-02-25 18:05:47 -06:00
Gildas Quéméner
afb6000f32 Fix typo on homepage (#263) 2019-02-13 12:57:38 +01:00
Masiukevich Maksim
0fd6b8c157 Fix phpdoc types for call / asyncCall (#260)
Incorrect types were indicated, due to which static analysis led to false positives.
2019-02-05 18:32:32 +01:00
Aaron Piotrowski
c6f8425473
Use a custom priority queue for timers
Fixes #220 by allowing immediate removal of the watcher from the queue. Insert and extract is O(log(n)), peeking is O(1), and removal is O(n).
2019-01-24 13:09:11 -06:00
Aaron Piotrowski
b6fc1e12d4
Move nowUpdateNeeded setting to getTimeout()
Essentially the same fix as @bwoebi committed, just placed at the source of the problem.
2019-01-21 10:27:49 -06:00
Bob Weinand
c3afc5e977
Fix #256 - Ensure nowUpdateNeeded is set to true after a blocking wait in NativeDriver
So that expired timeouts also indeed do trigger immediately instead of in the next tick.
2019-01-21 16:41:30 +01:00
Aaron Piotrowski
216315ee5c
Update Loop::now() docs 2018-12-12 10:30:48 -06:00
Bob Weinand
7075ef7d74 Fix #251 - 100% CPU usage in NativeDriver
Also use better bounds for timer - it must not execute before, but may execute a little later (on my system it were up to 7 ms actually)
2018-12-11 11:31:37 +01:00
Niklas Keller
23b8bd2cfe Added CHANGELOG entries for v2.1.0 2018-12-10 20:13:25 +01:00
Niklas Keller
5622edba37 Implement monotonic timer using PHP 7.3's hrtime() 2018-12-10 20:07:11 +01:00
Aaron Piotrowski
5889f4e0fd Randomize loop now offset 2018-11-26 21:59:15 +01:00
Aaron Piotrowski
d82c34d30b Add docs for Loop::now() 2018-11-26 21:59:15 +01:00
Aaron Piotrowski
77a12c823b Add Loop::now() 2018-11-26 21:59:15 +01:00
Sascha-Oliver Prolic
96c2eeaa1f Add Promise\wrap (#234) 2018-11-26 19:36:46 +01:00
SAMUEL NELA
9140197046 Update copyright (#242) 2018-11-25 18:00:57 +01:00
Sascha-Oliver Prolic
4a98cc4fde Add timeoutWithDefault function (#245) 2018-11-25 17:56:42 +01:00
Niklas Keller
b73e03bfe2 Rename Iterator\collect to Iterator\toArray 2018-11-25 17:09:50 +01:00
Niklas Keller
a60a8e1906 Add tests for Iterator\collect 2018-11-25 17:09:50 +01:00
Niklas Keller
22a8332261 Add Iterator\collect 2018-11-25 17:09:50 +01:00
Gabriel Caruso
6be5d4bfc5 Use dedicated PHPUnit assertions 2018-11-14 22:14:22 +01:00
Aaron Piotrowski
c4faf1f347
Update loop time in dispatch() instead of activate()
Fixes #243.
2018-10-14 22:30:31 -05:00
Šimon Podlipský
3fcc4d5de7 Fix syntax error in documentation example (#237) 2018-09-20 07:17:57 +02:00
Niklas Keller
205d37d849 Update code style in docs 2018-06-18 20:11:15 +02:00
Sascha-Oliver Prolic
81e7024e14 Document yield vs yield from (#226) 2018-06-18 20:01:46 +02:00
Niklas Keller
fa3fe1d20b Apply PSR-2 2018-06-18 20:00:01 +02:00
Niklas Keller
9f88371f9e Ignore docs/asset on export
Relates to amphp/amp#227
2018-05-16 22:29:53 +02:00
Niklas Keller
382fd0033b Update shared documentation files
This is an automated commit. Please report any issues to https://github.com/amphp/website-tools.
2018-05-16 16:15:33 +02:00
Niklas Keller
d561cc9736 Update README 2018-04-30 22:49:57 +02:00
Niklas Keller
82835325d0 Prevent ext-event 2.4.0RC1 and use 2.3.0 instead
PHP 7.2 in combination with ext-event 2.4.0RC1 throws exceptions with invalid file descriptors, while everything works fine with 2.3.0 or PHP < 7.2.

This is a temporary fix to get the build green again.

Relates to #221.
2018-04-30 22:47:14 +02:00
Niklas Keller
ab9011fc66 Update documentation dependencies 2018-04-30 10:48:03 +02:00
Niklas Keller
a43dd773b9 Add changelog entry for 2.0.7 2018-04-30 10:43:43 +02:00
Niklas Keller
5dac863f37 Don't record stack traces in case of AMP_DEBUG not being set (#218)
Fixes #217.
2018-04-26 00:32:31 +02:00
Aaron Piotrowski
242d78a6ec Fix 212 and ignore unreference on invalid watchers (#216)
Fix #212 & Ignore unreference on invalid watchers
2018-04-12 09:46:52 +02:00
Aaron Piotrowski
9b2fb76442
Free loop handle when destructing EventDriver
Relates to #177.
2018-04-08 13:20:27 -05:00
Aaron Piotrowski
3b12391529
Add note about OR'ing with 4 2018-04-08 13:10:46 -05:00
Aaron Piotrowski
8c8a6da0c2
Invoke watcher callback if events is 0 or 4
4 is UV_DISCONNECT
2018-04-06 14:22:39 -05:00
Niklas Keller
c632e40b03 Clarify promise interface
Fixes #209.
2018-03-25 17:27:41 +02:00
Aaron Piotrowski
22eb14d736
Avoid odd ev event nulling behavior 2018-03-20 09:54:22 -05:00
Bob Weinand
5b305835ea
Merge pull request #206 from krlv/update_contributing_md
Update contributing.md
2018-03-16 15:19:41 +01:00
Eugene Kirillov
c964599271 Fix code review comments 2018-03-16 15:55:04 +02:00
Eugene Kirillov
bbd083ffc9 Update contributing.md 2018-03-16 15:42:32 +02:00
Niklas Keller
4a742beb59 Prepare v2.0.6 2018-01-27 20:18:05 +01:00
Niklas Keller
819b484b80 Update gems for documentation 2018-01-27 20:13:19 +01:00
Aaron Piotrowski
992d6e9b39 Return named classes
Better for var_dump and stack traces.
2018-01-27 19:47:46 +01:00