1
0
mirror of https://github.com/danog/amp.git synced 2024-12-13 18:07:30 +01:00
Commit Graph

1410 Commits

Author SHA1 Message Date
Aaron Piotrowski
4faeca163b
Fix ref/unref of Delayed after resolving 2020-04-20 12:01:50 -05:00
Niklas Keller
23ac95fc6d Prepare v2.4.3 release 2020-04-19 17:54:21 +02:00
Niklas Keller
8ee469be90 Improve type definition for Amp\call 2020-04-19 15:38:36 +02:00
Aaron Piotrowski
0eb8ef438e
Make DriverControl an interface 2020-04-16 11:08:31 -05:00
Aaron Piotrowski
ab409bb254
Rename to DriverControl 2020-04-16 10:59:02 -05:00
Aaron Piotrowski
702aee45d3
Use delegate loop for Promise\wait() 2020-04-16 10:17:37 -05:00
Aaron Piotrowski
a062c3ed26
Update docs 2020-04-16 10:01:53 -05:00
Niklas Keller
5b4d019753 Allow tested calls to Amp\Promise\wait 2020-04-15 22:47:43 +02:00
Jáchym Toušek
2053b42fdb
Improve Deferred::resolve types (#307) 2020-04-05 22:37:09 +02:00
Niklas Keller
b6f99cd534 Use conditional psalm types for improved type inference 2020-04-05 22:17:32 +02:00
Niklas Keller
feca077369
Provide useful exception trace in TimeoutCancellationToken (#303)
Without this, the exception trace is pretty useless, because it only includes Loop::run() and other internal loop calls, giving absolutely no indication which kind of thing had a timeout.

Use debug_backtrace instead of creating the exception early, because it helps with the changes to GC behavior such a change might introduce.

Co-authored-by: Aaron Piotrowski <aaron@trowski.com>
2020-04-04 17:05:26 +02:00
Niklas Keller
8c486b40a8 Add generics to Deferred 2020-04-04 16:35:52 +02:00
Niklas Keller
3d250cbe30 Cover examples with psalm and add @psalm-yield to Promise 2020-04-04 15:49:26 +02:00
Niklas Keller
8f7300b1c3 Update shared documentation files
This is an automated commit. Please report any issues to https://github.com/amphp/website-tools.
2020-03-31 21:57:37 +02:00
Niklas Keller
c34b679142 Remove psalm-suppress for fixed psalm bugs 2020-03-29 14:24:09 +02:00
Niklas Keller
caea418fe8 Increase psalm error level to level 2 2020-03-28 22:20:44 +01:00
Niklas Keller
885cd68828 Increase psalm error level to level 3 2020-03-28 21:55:44 +01:00
Niklas Keller
0e04422dcb Increase psalm error level to level 4 2020-03-28 20:27:42 +01:00
Niklas Keller
603ce25299 Fix invalid types in doc comments
We're on the way to psalm error level 4, but there are still some remaining issues.
2020-03-28 14:32:53 +01:00
Niklas Keller
71d7f5674c Increase psalm error level to level 5 2020-03-28 14:25:39 +01:00
Niklas Keller
f8efd44684 Add additional types for static analysis 2020-03-28 14:20:27 +01:00
Niklas Keller
ba4d8a20d1 Skip installing psalm on Travis with PHP 7.0 2020-03-28 14:01:05 +01:00
Niklas Keller
79bc10e1f2 Fix condition for skipping psalm for PHP 7.0 on Travis 2020-03-28 13:56:27 +01:00
Niklas Keller
01cd49994f Add further generics for static analysis 2020-03-28 13:52:48 +01:00
Niklas Keller
f717dce636 Skip psalm on PHP 7.0 on Travis 2020-03-28 13:46:35 +01:00
Niklas Keller
a75164b66b Add psalm static analysis on level 6
This also fixes mixed types in some cases.
2020-03-28 12:23:46 +01:00
Niklas Keller
a87c630531 Fix branch alias 2020-03-22 08:13:28 +01:00
Niklas Keller
d2025541b2 Fix psalm annotation for Amp\Promise 2020-03-21 21:15:39 +01:00
Jáchym Toušek
93fec17736
Improve compatibility with static analysis tools (#301) 2020-03-21 21:13:54 +01:00
Aaron Piotrowski
34bcf727dc
Add parameter for custom timeout message (#299) 2020-02-28 13:35:37 -06:00
Aaron Piotrowski
2ac3b550c4
Fix array access on null last error 2020-02-10 12:10:57 -06:00
Bilge
cbef0db7cd Remove snapshot suffix from Travis PHP 7.4 environment (#295) 2019-12-13 00:20:31 +01:00
Niklas Keller
13930a5829 Prepare v2.4.0 2019-11-11 20:32:05 +01:00
Aaron Piotrowski
193efe7e96
Return null, not -1 2019-11-11 13:23:14 -06:00
Niklas Keller
c73528e839 Expose getCurrentTime as public API 2019-11-11 13:20:38 -06:00
Aaron Piotrowski
dd4d6be677
Remove unneeded method
Fix big-O lies in docblock.
2019-10-31 15:41:07 -05:00
Aaron Piotrowski
710f84ccc8
Improve timer cancellation in NativeDriver 2019-10-30 09:41:46 -05:00
Niklas Keller
9fa04aa6f8 Add changelog entries for v2.3.x 2019-10-26 16:31:57 +02:00
Niklas Keller
64e7d10108 Fix cancellation trace recording in TracingDriver 2019-10-26 16:20:56 +02:00
Jáchym Toušek
cf12c1c529 Fix annotation (#288) 2019-10-26 12:39:02 +02:00
Jáchym Toušek
ad31ed803c Add toArray documentation (#286) 2019-10-11 20:30:42 +02:00
Niklas Keller
5a294f1381 Fix TracingDriver, add TracingDriverTest 2019-10-01 21:39:23 +02:00
Niklas Keller
1657284608
Add TracingDriver for debugging (#283) 2019-10-01 21:01:44 +02:00
Niklas Keller
95b2af334b Fix arrow position in sequential-vs-concurrent.png 2019-09-22 13:38:53 +02:00
Niklas Keller
49a0bf693d Update changelog 2019-09-21 23:29:37 +02:00
Niklas Keller
ddf23f8a99 Minor README changes 2019-09-21 23:24:07 +02:00
Niklas Keller
4d849191e5
Fix build on Travis (#281) 2019-09-21 23:17:45 +02:00
Niklas Keller
11215534e8 Improve README 2019-09-21 21:02:47 +02:00
Niklas Keller
f5463656f4 Improve meta files 2019-09-21 18:35:24 +02:00
Aaron Piotrowski
a726db92a5 Only create deferred for backpressure if necessary 2019-09-21 18:30:14 +02:00