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

amphp / amp
96%
master: 92%

Build:
Build:
LAST BUILD BRANCH: streams
DEFAULT BRANCH: master
Repo Added 23 Jul 2015 05:40AM UTC
Files 47
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

LAST BUILD ON BRANCH keepalive
branch: keepalive
CHANGE BRANCH
x
Reset
  • keepalive
  • 1.0.4
  • 1.x
  • 2.x
  • 32bit
  • amend-changelog
  • amp-optimizations
  • async-interop-merge
  • bilge-test
  • callablemaker-internal
  • cancellation
  • changelog
  • collect
  • collect-cycles
  • combinators
  • concat
  • coroutine-alt
  • coroutine-failure
  • debug-coroutine
  • debug-env-define
  • dependabot/bundler/docs/nokogiri-1.10.3
  • double-resolution-debug
  • drop-choose
  • env-driver
  • error-prevention
  • error-reprevention
  • ex-msg
  • example-cross-ref
  • ext-async
  • fcall-perf
  • final
  • fix-212
  • fix-252
  • fix-265
  • fix-parallel-functions-3
  • fix-when-order
  • flat_callstack
  • flow
  • fluent-transform
  • fqn
  • functions
  • get-current-time
  • hide-resolution-methods
  • ignore-unreference-during-gc
  • issue-160
  • issue-217
  • kelunik-review-2017-04-23
  • kelunik-travis-debug
  • kelunik-v2-review
  • loop-now
  • loop-now-alt
  • master
  • mediator
  • message
  • null-cancel
  • observer-next
  • pause-delayed
  • promise-docs
  • react-compatibility
  • relieve-backpressure
  • rename-observable
  • repurpose-coroutine-function
  • single-deferred-definition
  • single-deferred-defintion
  • split-driver
  • stream-refactor
  • subscriber-interface
  • test-failures
  • timeout-message
  • timeout-token
  • timer-fix
  • timer-offset
  • timer-queue-refactor
  • timing
  • travis
  • travis-libevent
  • travis-pcov
  • travis-uv
  • v1.0.0
  • v1.0.1
  • v1.0.2
  • v1.0.3
  • v1.0.4
  • v1.0.5
  • v1.0.6
  • v1.0.x
  • v2.0.0
  • v2.0.0-RC1
  • v2.0.0-RC2
  • v2.0.0-RC3
  • v2.0.0-RC4
  • v2.0.1
  • v2.0.2
  • v2.0.3
  • v2.0.4
  • v2.0.5
  • v2.0.6
  • v2.0.7
  • v2.1.0
  • v2.1.1
  • v2.1.2
  • v2.2.0
  • v2.2.1
  • v2.3.0
  • v2.3.1
  • v2.3.2
  • v2.4.0
  • v2.4.1
  • v2.4.2
  • v2.4.3
  • v2.4.4
  • v2.5.0
  • void-or-gen-only
  • wait-for-listener
  • yield-cancellation-tokens

pending completion
233

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 other 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%)

34.19 hits per line

Relevant lines Covered
Build:
Build:
1397 RELEVANT LINES 1346 COVERED LINES
34.19 HITS PER LINE
Source Files on keepalive
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
233 keepalive 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-crucia... push 31 Jul 2015 05:31AM UTC rdlowrey travis-ci pending completion  
See All Builds (965)
  • Repo on GitHub
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

© 2026 Coveralls, Inc