PackageTrack
Sign in Get early access

react/promise-timer

A trivial implementation of timeouts for Promises, built on top of ReactPHP.

v1.11.0 53M downloads/mo #381 most downloaded on Packagist reactphp/promise-timer

What this package is like to depend on

Last release 2 years ago

no release in 18 months

Ships fairly regularly

a new release about every 7 months

Nearly every release is documented

notes for 15 of 15 stable releases

Nothing withdrawn

no release was ever pulled

11 years old

15 releases · first in 2015

0 releases in the last 12 months

see the full history below

Release timeline

15 releases · Sep 2015 to Jun 2024
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 15
  1. v1.11.0 04 Jun 2024
    Release notes
    • Feature: Improve PHP 8.4+ support by avoiding implicitly nullable type declarations.
      (#70 by @clue)

    • Feature: Full PHP 8.3 compatibility.
      (#68 by @clue)

    Open source →
    Release notes
    • Feature: Improve PHP 8.4+ support by avoiding implicitly nullable type declarations. (#70 by @clue)

    • Feature: Full PHP 8.3 compatibility. (#68 by @clue)

    Open source →
  2. v1.10.0 20 Jul 2023
    Release notes
    Open source →
    Release notes
    • Feature: Use Promise v3 template types. (#67 by @clue and #63 and #64 by @WyriHaximus)

    • Minor documentation improvements. (#59 by @nhedger)

    • Improve test suite, avoid unhandled promise rejections and report failed assertions. (#66 and #62 by @clue and #61 by @WyriHaximus)

    Open source →
  3. v1.9.0 13 Jun 2022
    Release notes
    • Feature: Improve forward compatibility with upcoming Promise v3 API.
      (#54 and #55 by @clue)

    • Minor documentation improvements for upcoming Promise v3.
      (#58 by @clue and #56 by @SimonFrings)

    • Improve test suite, fix legacy HHVM build by downgrading Composer.
      (#57 by @SimonFrings)

    Open source →
    Release notes
    • Feature: Improve forward compatibility with upcoming Promise v3 API. (#54 and #55 by @clue)

    • Minor documentation improvements for upcoming Promise v3. (#58 by @clue and #56 by @SimonFrings)

    • Improve test suite, fix legacy HHVM build by downgrading Composer. (#57 by @SimonFrings)

    Open source →
  4. v1.8.0 06 Dec 2021
    Release notes
    • Feature: Add new sleep() function and deprecate resolve() and reject() functions.
      (#51 by @clue)

      // deprecated
      React\Promise\Timer\resolve($time);
      React\Promise\Timer\reject($time);
      
      // new
      React\Promise\Timer\sleep($time);
    • Feature: Support PHP 8.1 release.
      (#50 by @Thomas-Gelf, #52 by @clue and #48 by @SimonFrings)

    • Improve API documentation and add parameter types and return types.
      (#49 by @clue and #47 by @SimonFrings)

    Open source →
    Release notes
    • Feature: Add new sleep() function and deprecate resolve() and reject() functions. (#51 by @clue)

      // deprecated
      React\Promise\Timer\resolve($time);
      React\Promise\Timer\reject($time);
      
      // new
      React\Promise\Timer\sleep($time);
      
    • Feature: Support PHP 8.1 release. (#50 by @Thomas-Gelf, #52 by @clue and #48 by @SimonFrings)

    • Improve API documentation and add parameter types and return types. (#49 by @clue and #47 by @SimonFrings)

    Open source →
  5. v1.7.0 11 Jul 2021
    Release notes

    A major new feature release, see release announcement.

    • Feature: Simplify usage by supporting new default loop.
      (#46 by @clue)

      // old (still supported)
      $promise = timeout($promise, $time, $loop);
      $promise = resolve($time, $loop);
      $promise = reject($time, $loop);
      
      // new (using default loop)
      $promise = timeout($promise, $time);
      $promise = resolve($time);
      $promise = reject($time);
    • Improve test suite, use GitHub actions for continuous integration (CI),
      update PHPUnit config, run tests on PHP 8 and add full core team to the license.
      (#43 by @WyriHaximus, #44 and #45 by @SimonFrings)

    Open source →
    Release notes

    A major new feature release, see release announcement.

    • Feature: Simplify usage by supporting new default loop. (#46 by @clue)

      // old (still supported)
      $promise = timeout($promise, $time, $loop);
      $promise = resolve($time, $loop);
      $promise = reject($time, $loop);
      
      // new (using default loop)
      $promise = timeout($promise, $time);
      $promise = resolve($time);
      $promise = reject($time);
      
    • Improve test suite, use GitHub actions for continuous integration (CI), update PHPUnit config, run tests on PHP 8 and add full core team to the license. (#43 by @WyriHaximus, #44 and #45 by @SimonFrings)

    Open source →
  6. v1.6.0 10 Jul 2020
    Release notes
    Open source →
    Release notes
    • Feature: Forward compatibility with react/promise v3. (#37 by @WyriHaximus)

    • Improve test suite and add .gitattributes to exclude dev files from exports. Run tests on PHPUnit 9 and PHP 7.4 and clean up test suite. (#38 by @WyriHaximus, #39 by @reedy, #41 by @clue and #42 by @SimonFrings)

    Open source →
  7. v1.5.1 27 Mar 2019
    Release notes
    • Fix: Typo in readme
      (#35 by @aak74)

    • Improvement: Only include functions file when functions aren't defined
      (#36 by @Niko9911)

    Open source →
    Release notes
    • Fix: Typo in readme (#35 by @aak74)

    • Improvement: Only include functions file when functions aren't defined (#36 by @Niko9911)

    Open source →
  8. v1.5.0 13 Jun 2018
    Release notes
    • Feature: Improve memory consumption by cleaning up garbage references to pending promise without canceller.
      (#34 by @clue)
    Open source →
    Release notes
    • Feature: Improve memory consumption by cleaning up garbage references to pending promise without canceller. (#34 by @clue)
    Open source →
  9. v1.4.0 11 Jun 2018
    Release notes
    • Feature: Improve memory consumption by cleaning up garbage references.
      (#33 by @clue)
    Open source →
    Release notes
    • Feature: Improve memory consumption by cleaning up garbage references. (#33 by @clue)
    Open source →
  10. v1.3.0 24 Apr 2018
    Release notes
    • Feature: Improve memory consumption by cleaning up unneeded references.
      (#32 by @clue)
    Open source →
    Release notes
    • Feature: Improve memory consumption by cleaning up unneeded references. (#32 by @clue)
    Open source →
  11. v1.2.1 22 Dec 2017
    Release notes
    • README improvements (#28 by @jsor)

    • Improve test suite by adding forward compatiblity with PHPUnit 6 and fix test suite forward compatibility with upcoming EventLoop releases (#30 and #31 by @clue)

    Open source →
  12. v1.2.0 08 Aug 2017
    Release notes
    • Feature: Only start timers if input Promise is still pending and return a settled output promise if the input is already settled. (#25 by @clue)

    • Feature: Cap minimum timer interval at 1µs across all versions (#23 by @clue)

    • Feature: Forward compatibility with EventLoop v1.0 and v0.5 (#27 by @clue)

    • Improve test suite by adding PHPUnit to require-dev and lock Travis distro so new defaults will not break the build (#24 and #26 by @clue)

    Open source →
  13. v1.1.1 27 Dec 2016
    Release notes
    • Improve test suite to use PSR-4 autoloader and proper namespaces. (#21 by @clue)
    Open source →
  14. v1.1.0 29 Feb 2016
    Release notes
    • Feature: Support promise cancellation for all timer primitives (#18 by @clue)
    Open source →
  15. v1.0.0 29 Sep 2015
    Release notes
    • First tagged release
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive