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

308 Commits

Author SHA1 Message Date
Daniel Lowrey
2a0486cb3c Add Amp\pipe() function to pipe eventual results through a functor 2015-05-19 11:31:01 -04:00
Daniel Lowrey
30245d6817 Add optional callback data param in Deferred::__construct() 2015-05-19 11:16:04 -04:00
Daniel Lowrey
1ed5e69c52 Move buffering to PromiseStream for custom behavior in extended instances 2015-05-19 01:09:23 -04:00
Daniel Lowrey
4acec8eceb update changelog 2015-05-19 00:31:25 -04:00
Daniel Lowrey
68719d8023 Unresolved -> PrivatePlaceholder 2015-05-19 00:29:27 -04:00
Daniel Lowrey
953c4612e6 Future -> Deferred 2015-05-19 00:21:33 -04:00
Daniel Lowrey
3af013d418 Expose boolean AMP_DEBUG for performance tuning
Amp Future instances double both as Promisor and Promise
implementations when AMP_DEBUG is defined and set to false.
This switch allows private Promise resolution safety by
default at the expense of performance.

Amp applications should set AMP_DEBUG to false in production
environments to maximize performance.
2015-05-18 23:57:34 -04:00
Daniel Lowrey
0973bba5ef Add PromiseStream to stream Promise updates without callback hell 2015-05-18 17:39:09 -04:00
Daniel Lowrey
02e85b29c6 Fix high cpu usage in timer loop from broken "nextTimerAt" caching 2015-05-18 11:40:09 -04:00
Daniel Lowrey
aa27ab7a10 Fixed bug causing every NativeReactor tick to last one second (lol) 2015-05-17 19:52:41 -04:00
Daniel Lowrey
631a6089d9 Resolve correct Success arg in empty any\(\) combinator 2015-05-15 15:59:57 -04:00
Daniel Lowrey
93eb8ad8de Suggest nearby property name in Struct error messages 2015-05-13 10:05:56 -04:00
Daniel Lowrey
2c3a3e65bd Add offending generator key to coroutine resolution error messages 2015-05-13 01:15:35 -04:00
Daniel Lowrey
772f9fdcfb fix json syntax derp 2015-05-12 15:23:53 -04:00
Daniel Lowrey
a17a624256 update support files 2015-05-12 15:18:28 -04:00
Daniel Lowrey
515403077e update composer.json 2015-05-12 15:03:24 -04:00
Daniel Lowrey
cd815b4b99 update changelog for 1.0.0-beta 2015-05-12 15:02:06 -04:00
Daniel Lowrey
3bc7583544 update README 2015-05-12 14:58:45 -04:00
Daniel Lowrey
4a45502ae9 Correctly update nextTimerAt timestamp for repeat watchers 2015-05-10 02:36:39 -04:00
Daniel Lowrey
ed6084c333 Fix incorrect additional increment 2015-05-10 00:54:02 -04:00
Daniel Lowrey
489e357348 display travis badge for correct branch 2015-05-04 12:59:35 -04:00
Daniel Lowrey
2eb944d6ec skip libevent tests if extension not loaded 2015-05-04 12:58:11 -04:00
Daniel Lowrey
0b3046dfb4 Add php versions to travis run 2015-05-04 12:55:49 -04:00
Daniel Lowrey
7967bec394 allow php7 in composer.json 2015-05-04 12:48:29 -04:00
Daniel Lowrey
8ae1906fd6 update contributing file 2015-05-04 12:48:29 -04:00
Daniel Lowrey
cddb8e9f08 Backport API changes to 5.5+ compat 2015-05-04 12:48:29 -04:00
Daniel Lowrey
b9819d85b4 kill reference to removed function 2015-04-29 13:45:06 -04:00
Daniel Lowrey
c2e2508d5c update README 2015-04-29 13:28:28 -04:00
Daniel Lowrey
28d2e09968 guide updates 2015-04-29 13:24:59 -04:00
Daniel Lowrey
5f4509312f sigh ... add phpunit to composer requires 2015-04-29 12:53:40 -04:00
Daniel Lowrey
192627cf94 F U composer php version requirement 2015-04-29 12:27:15 -04:00
Daniel Lowrey
bf89a74035 fix composer for php7 requirement 2015-04-29 12:07:51 -04:00
Daniel Lowrey
6e405ad75c update readme 2015-04-29 11:36:26 -04:00
Daniel Lowrey
7762f0020d Add travis support 2015-04-29 11:29:09 -04:00
Daniel Lowrey
d4256833c9 update composer.json 2015-04-29 11:26:23 -04:00
Daniel Lowrey
06981ab6ea fix bad anon class syntax 2015-04-29 11:24:26 -04:00
Daniel Lowrey
82b89043da update changelog 2015-04-29 11:01:45 -04:00
Daniel Lowrey
22b308793a update support files 2015-04-27 15:16:26 -04:00
Daniel Lowrey
3909efd56e Merge branch 'v1.0.0-dev'
Conflicts:
	lib/CoroutineResolver.php
	lib/functions.php
2015-04-27 15:02:58 -04:00
Daniel Lowrey
693ce52d99 Merge pull request #25 from staabm/patch-2
drop $forceNew param in getReactor()
2015-04-27 14:51:21 -04:00
Daniel Lowrey
1565e23d46 replace call_user_func() reference 2015-04-27 14:33:41 -04:00
Daniel Lowrey
7cb09edf29 Use anonymous classes 2015-04-27 14:33:17 -04:00
Daniel Lowrey
446eded441 Remove superfluous parameter 2015-04-27 14:30:07 -04:00
Markus Staab
f004d83cf1 drop $forceNew param in getReactor()
At runtime there are no use cases where one would like to re-create the reactor. only multi instance scenario is unit tests, but those don't need to be covered in the public api.
2015-04-27 17:57:44 +02:00
Daniel Lowrey
60f1b4484e update docblock 2015-04-03 12:52:17 -04:00
Daniel Lowrey
812e1fb6b4 Reactor API updates, NativeReactor refactor 2015-04-03 11:56:16 -04:00
Daniel Lowrey
2aa4c0c357 Remove libevent reactor until pecl/libevent supports php7 2015-04-03 11:55:23 -04:00
Daniel Lowrey
b57f6eb6bf Add explanatory comment 2015-03-28 10:05:09 -04:00
Daniel Lowrey
fa080b66aa Remove superfluous is_object() check 2015-03-28 10:03:27 -04:00
Daniel Lowrey
9a1581c91d Bind local vars to closure 2015-03-25 14:17:26 -04:00