• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

amphp / amp / 236 / 2
91%
master: 92%

Build:
Build:
LAST BUILD BRANCH: streams
DEFAULT BRANCH: master
Ran 31 Jul 2015 01:38PM UTC
Files 20
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Jul 2015 01:32PM UTC coverage: 96.349% (+0.2%) from 96.16%
236.2

push

travis-ci

rdlowrey
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.

1346 of 1397 relevant lines covered (96.35%)

17.1 hits per line

Source Files on job 236.2
  • List 0
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 236
  • Travis Job 236.2
  • 094899a7 on github
  • Prev Job for on v1.0.0 (#221.2)
  • Next Job for on v1.0.0 (#238.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc