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

1033 Commits

Author SHA1 Message Date
Bob Weinand
7e875298b8 Use getInfo() in __debugInfo() 2016-12-29 01:50:41 +01:00
Aaron Piotrowski
8ab3918974 Remove \UV::RUN_ONCE if not blocking. 2016-12-28 16:16:09 -06:00
Aaron Piotrowski
225c0703ee Merge branch 'event-loop-v0.4' into uv 2016-12-28 13:02:20 -06:00
Aaron Piotrowski
583a50fab7 Update for loop standard changes 2016-12-28 12:59:04 -06:00
Aaron Piotrowski
f7f5a9a2d9 Fix typo. 2016-12-28 12:56:19 -06:00
Aaron Piotrowski
66bceb811b info() → getInfo() 2016-12-28 12:48:34 -06:00
Niklas Keller
26173a63e6 Add note about weak type requirement 2016-12-28 14:18:14 +01:00
Aaron Piotrowski
a4d572cab9 Fix typo in function declaration 2016-12-27 17:20:48 -06:00
Niklas Keller
2a65c0735b Fix docblock for Placeholder::when 2016-12-23 23:48:24 +01:00
Bob Weinand
e642182289 Update to Promise 2016-12-23 13:14:11 +01:00
Bob Weinand
21683eeb26 Merge pull request #120 from async-interop/loop-info
Rename Loop::info to Loop::getInfo
2016-12-23 11:25:07 +01:00
Niklas Keller
5eeb96ab80 Add missing return description to Loop::getInfo 2016-12-23 11:05:37 +01:00
Niklas Keller
53bd12bbbd Rename Loop::info to Loop::getInfo
We use `get` for all other similar methods, too. Closes #102.
2016-12-23 10:58:26 +01:00
Bob Weinand
2c0d6064af Update for setErrorHandler() & getWatcherId + new test with stop() 2016-12-23 01:43:09 +01:00
Aaron Piotrowski
db1661be6a Merge pull request #118 from async-interop/return_old_error_handler
Loop::setErrorHandler should return the last error handler
2016-12-22 11:38:10 -06:00
Bob Weinand
44fd40af93 Loop::setErrorHandler should return the last error handler 2016-12-22 17:50:25 +01:00
Bob Weinand
50fd5e3bf2 Merge pull request #116 from async-interop/packages
Add implementations and compatible projects to README
2016-12-22 13:15:58 +01:00
Bob Weinand
ef9216a00a Do not block in Loop::dispatch() after Loop::stop() 2016-12-18 21:56:47 +01:00
Niklas Keller
438ce0b892 Add implementations and compatible projects to README
Closes #105.
2016-12-18 12:31:02 +01:00
Aaron Piotrowski
bc1ae1822c Unreference watcher in Amp\timout() 2016-12-17 08:28:19 -06:00
Aaron Piotrowski
8ef760f53c More tests 2016-12-17 08:16:17 -06:00
Aaron Piotrowski
11f1c7e7c4 Amp\lazy() → Amp\Lazy
Plus some tests!
2016-12-15 18:50:33 -06:00
Aaron Piotrowski
93ad513ab1 Remove dead code
Deferred and Postponed will never throw from the functions they define.
2016-12-15 17:34:30 -06:00
Aaron Piotrowski
6e97e6630d Fix some function bugs and add more tests 2016-12-15 17:31:57 -06:00
Aaron Piotrowski
c73ca4e427 Add Emitter and Observer tests 2016-12-13 15:29:54 -06:00
Niklas Keller
1bbcadaedd Rename Observer::next to Observer::advance 2016-12-13 20:37:51 +01:00
Niklas Keller
1299e51ca6 Add tests for InvalidYieldError, improve key display
Without something like var_export, null and false are casted to an empty string.
2016-12-11 17:08:17 +01:00
Niklas Keller
a66f25e4f6 Fix tests 2016-12-11 16:39:58 +01:00
Niklas Keller
e4d97caad7 Fix whitespace 2016-12-11 16:17:51 +01:00
Niklas Keller
2ba73e90fc Fix documentation to point to when instead of then and done 2016-12-11 16:16:12 +01:00
Niklas Keller
bd7e84a138 Improve error messages 2016-12-11 16:12:42 +01:00
Daniel Lowrey
e3cdea2fce Make exception messages more generic 2016-12-09 12:22:37 -05:00
Cees-Jan Kiewiet
9433870361 Merge pull request #114 from async-interop/parallel-lint
Use parallel-lint for linting
2016-12-05 19:39:10 +01:00
Niklas Keller
5f3086ba95 Use parallel-lint for linting 2016-12-05 13:46:17 +01:00
Cees-Jan Kiewiet
0909e60392 Merge pull request #111 from async-interop/invalid-watcher-exception
Add InvalidWatcherException::getWatcherId
2016-12-05 13:40:06 +01:00
Aaron Piotrowski
3f2e0e1b72 Fix method name in wait() test 2016-11-14 16:29:49 -06:00
Aaron Piotrowski
f95412770b Lazy promise bugfix 2016-11-14 14:10:44 -06:00
Aaron Piotrowski
9927ad5b4f Awaitable → Promise 2016-11-14 13:59:21 -06:00
Bob Weinand
871f4efe26 Merge branch 'master' into invalid-watcher-exception 2016-11-14 17:58:43 +01:00
Bob Weinand
ef913fcfbb Merge pull request #112 from async-interop/consistent-docs
Make driver and loop docs consistent
2016-11-14 17:58:06 +01:00
Niklas Keller
aa07fb1455 Make driver and loop docs consistent 2016-11-06 21:50:31 +01:00
Niklas Keller
f41eb23a8d Add InvalidWatcherException::getWatcherId
Resolves #98. I guess this exception should only be thrown if the passed watcher
identifier is a string. If a wrong type is passed, some other exception should be thrown.
2016-11-06 18:38:20 +01:00
Bob Weinand
e8fb7169d4 Fix #1 (onSignal handlers are unordered) 2016-10-26 15:39:11 +02:00
Bob Weinand
aef839e4ae Merge pull request #109 from async-interop/issue-106
Add warning about locally closed resources being undefined behavior
2016-10-25 18:27:10 +02:00
Niklas Keller
9916529f3c 'may' → 'MAY', copy docs for defer, delay, repeat from Driver to Loop 2016-10-25 17:35:21 +02:00
Niklas Keller
5d9de0c060 Fix typo, remove debug mode hint 2016-10-25 17:35:21 +02:00
Niklas Keller
c1a4d9346d Add warning about locally closed resources being undefined behavior
Also makes Loop docs consistent with Driver. Resolves #106.
2016-10-25 17:35:21 +02:00
Bob Weinand
11c04e9efe Merge pull request #110 from async-interop/issue-95
Define error handler behavior
2016-10-25 10:56:32 +02:00
Niklas Keller
27e7f2a05b Define error handler behavior
Resolves #95.
2016-10-24 20:43:21 +02:00
Bob Weinand
9669587296 Initial commit 2016-10-24 19:53:21 +02:00