Daniel Lowrey
70f4971ae1
Remove stream() in favor of PromiseStream
2015-08-04 23:46:49 -04:00
Daniel Lowrey
7c35dc7efd
Fix keep_alive refcount off-by-one error in reactor implementations
2015-08-04 23:11:52 -04:00
Daniel Lowrey
32e295aa95
allow php7 failures until phpdbg code coverage doesn't break
2015-08-04 11:17:22 -04:00
Daniel Lowrey
98f609a99a
Clear watchers on run() loop exit, throw on invalid run/tick/stop calls
2015-08-04 11:07:13 -04:00
Bob Weinand
5ed70577fc
Fully move coveralls integration into .travis.yml
2015-08-02 21:59:44 +02:00
Daniel Lowrey
f840ee4334
update incorrect docblock
2015-08-01 23:03:25 -04:00
Bob Weinand
f32fb8373b
Add phpdbg coverage on travis
2015-08-01 23:36:59 +02:00
Daniel Lowrey
2c8727133e
functor argument is now optional in Amp\filter()
...
If no functor parameter is supplied, all results equal to FALSE
using a (bool) cast will be removed.
2015-08-01 13:28:41 -04:00
Daniel Lowrey
705c57483b
Fail promise timeout() operations using TimeoutException
2015-07-31 15:50:27 -04:00
Daniel Lowrey
094899a74b
Add boolean "keep_alive" option for all watcher types
...
This option determines if the watcher will keep the run() loop
from returning. By default all watchers set "keep_alive" => true.
Setting this value to false is ideal for registering non-crucial
watchers (e.g. cache invalidation timers) that should run for the
life of the program but shouldn't prevent the event loop from
returning if all essential tasks have completed.
<?php
echo "before run\n";
run(function () {
immediately(function () {
echo "immediately\n";
});
once(function () {
echo "once\n";
}, 100, ["keep_alive" => false]);
repeat(function () {
echo "repeat\n";
}, 500, ["keep_alive" => false]);
echo "onStart end\n";
});
echo "after run\n";
The above snippet will have the following output:
before run
immediately
after run
The Amp\info() function now also reports the number of
keep_alive watchers currently registered via the "keep_alive" key.
2015-07-31 09:32:22 -04:00
Daniel Lowrey
bdd8503cbe
init() -> driver()
2015-07-31 09:32:21 -04:00
Daniel Lowrey
b1f400cad5
misc v1 cleanup
2015-07-29 23:23:53 -04:00
Daniel Lowrey
56b6330114
Use object hashes as watcher IDs
2015-07-29 22:12:53 -04:00
Bob Weinand
f1333a3e59
Re-add sudo: false for speed
2015-07-29 17:34:51 -04:00
Bob Weinand
d3d99875a8
Properly use the existing tools if available
2015-07-29 17:34:44 -04:00
Daniel Lowrey
8bcbba41a0
Move to procedural API
2015-07-29 16:59:53 -04:00
Daniel Lowrey
4338d8617f
update badges
2015-07-28 09:09:42 -04:00
Daniel Lowrey
3cbbe5ec2b
remove guide from source repo
2015-07-27 13:44:28 -04:00
Daniel Lowrey
114744aa76
update readme ahead of v1
2015-07-27 13:43:47 -04:00
Daniel Lowrey
94911a744f
update composer ahead of v1
2015-07-27 13:37:05 -04:00
Daniel Lowrey
1d9d572ee5
promise updates are no longer variadic + misc formatting
2015-07-27 10:08:02 -04:00
Daniel Lowrey
38b3fbbbbb
move PromiseStream functionality into Amp\stream()
2015-07-23 15:23:45 -04:00
Daniel Lowrey
d1c278d347
update readme
2015-07-23 01:48:28 -04:00
Daniel Lowrey
9e0f64f2e0
point coveralls badge at correct branch
2015-07-23 01:38:02 -04:00
Daniel Lowrey
28a5f5d905
update 1.0.0-dev branch alias to point at master
2015-07-23 01:35:59 -04:00
Daniel Lowrey
e18b090902
use fully qualified namespace for global functions
2015-07-23 01:32:52 -04:00
Daniel Lowrey
55e379e332
Rollback static coroutine methods to namespaced functions
2015-07-23 01:30:53 -04:00
Daniel Lowrey
a4636851d6
remove deprecated functions
2015-07-22 14:49:40 -04:00
Daniel Lowrey
9aa00bdc9e
update license
2015-07-22 14:04:30 -04:00
Daniel Lowrey
7335cb2517
use explicit FQDN for compile time optimizations
2015-07-22 13:54:29 -04:00
Daniel Lowrey
7b36061ee5
spurious readme update to trigger coveralls
2015-07-22 13:43:35 -04:00
Daniel Lowrey
4095aabbfc
update composer
2015-07-22 13:12:29 -04:00
Daniel Lowrey
09e000a6d7
allow nested tick
2015-07-22 13:12:21 -04:00
Daniel Lowrey
1fa9771dde
update coverage ignore
2015-07-22 13:12:14 -04:00
Daniel Lowrey
505c59d0e3
minor cleanup
2015-07-22 12:34:42 -04:00
Daniel Lowrey
924db14af8
update composer
2015-07-22 11:42:16 -04:00
Daniel Lowrey
f6be176a07
cleanup + tests
2015-07-22 11:38:17 -04:00
Daniel Lowrey
c3298f104a
remove examples
2015-07-22 09:09:17 -04:00
Daniel Lowrey
03f7b8305c
update contributing file
2015-07-22 00:24:48 -04:00
Daniel Lowrey
b01a165a63
Remove changelog; using github release interface going forward
2015-07-22 00:16:32 -04:00
Daniel Lowrey
6caaf2b754
update readme
2015-07-22 00:15:36 -04:00
Daniel Lowrey
cdc5fecd47
Remove Streamable interface
2015-07-22 00:10:09 -04:00
Daniel Lowrey
64775544dd
update readme
2015-07-22 00:06:02 -04:00
Daniel Lowrey
79a33c09fe
misc + testing
2015-07-21 23:59:20 -04:00
Daniel Lowrey
2cea028b1c
filter() updates and tests
2015-07-21 20:09:27 -04:00
Daniel Lowrey
932542f292
add map() combinator tests
2015-07-21 19:41:39 -04:00
Daniel Lowrey
33fd20acb3
add tests
2015-07-21 17:25:18 -04:00
Daniel Lowrey
dcab6907c0
minor cleanup
2015-07-21 17:25:11 -04:00
Daniel Lowrey
d6b674b93b
Move coroutine functions into new Coroutine class
2015-07-21 16:14:50 -04:00
Daniel Lowrey
564a81c519
misc updates + tests
2015-07-21 12:25:34 -04:00