2017 © Pedro Peláez
 

library ticking-promise

Wrapping ticks into a promise

image

wyrihaximus/ticking-promise

Wrapping ticks into a promise

  • Saturday, June 23, 2018
  • by WyriHaximus
  • Repository
  • 2 Watchers
  • 3 Stars
  • 57,334 Installations
  • PHP
  • 16 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 14 % Grown

The README.md

TickingPromise

Continuous Integration Latest Stable Version Total Downloads Code Coverage Type Coverage License, (*1)

Wrapping event loop ticks into a promise., (*2)

Install

To install via Composer, use the command below, it will automatically detect the latest version and bind it with ~., (*3)

composer require wyrihaximus/ticking-promise 

Example

<?php

declare(strict_types=1);

use function WyriHaximus\React\futurePromise;

futurePromise()->then(static function (): void {
    echo 'Done', PHP_EOL;
});
futurePromise()->then(static function (string $message): void {
    echo $message, PHP_EOL;
}, 'Also done');

For more examples check the examples directory., (*4)

License

Copyright 2021 Cees-Jan Kiewiet, (*5)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*6)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*7)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*8)

The Versions

23/06 2018

dev-master

9999999-dev

Wrapping ticks into a promise

  Sources   Download

MIT

The Requires

 

The Development Requires

05/04 2018
31/10 2017
05/03 2016
14/01 2016
09/01 2016
04/10 2015
26/12 2014