2017 © Pedro Peláez
 

library promise-wait

Provides a wait functionality for ReactPHP/Promise library.

image

adimihaila/promise-wait

Provides a wait functionality for ReactPHP/Promise library.

  • Tuesday, May 29, 2018
  • by adrianmihaila
  • Repository
  • 0 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 75 % Grown

The README.md

ReactPHP promise/wait Build Status

This lightweight library provides a wait functionality for ReactPHP/promise library., (*1)

Installation

composer require adimihaila/promise-wait

Usage

<?php

use React\Promise\Deferred;

function doAsyncSomething() {
    $deferred = new Deferred();
    $deferred->resolve($value);

    return $deferred->promise();
}

$value = doAsyncSomething()
    ->then(function ($response) {
        sleep(5);

        return $response++;
    });

echo \AdiMihaila\Promise\wait($value);

The Versions

29/05 2018

dev-master

9999999-dev https://github.com/adrianmihaila/reactphp-promise-wait

Provides a wait functionality for ReactPHP/Promise library.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Mihaila

async promise sync wait reactphp

29/05 2018

1.0.2

1.0.2.0 https://github.com/adrianmihaila/reactphp-promise-wait

Provides a wait functionality for ReactPHP/Promise library.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Mihaila

async promise sync wait reactphp

26/05 2018

1.0.1

1.0.1.0 https://github.com/adrianmihaila/reactphp-promise-wait

Provides a wait functionality for ReactPHP/Promise library.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Mihaila

async promise sync wait reactphp

26/05 2018

1.0.0

1.0.0.0 https://github.com/adrianmihaila/reactphp-promise-wait

Provides a wait functionality for ReactPHP/Promise library.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Mihaila

async promise sync wait reactphp