2017 © Pedro Peláez
 

library react-promise

RxPHP v2 support for ReactPHP's Promises

image

rx/react-promise

RxPHP v2 support for ReactPHP's Promises

  • Sunday, March 19, 2017
  • by davidwdan
  • Repository
  • 2 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

ReactPHP Promises

This project is superseded by the promise support in the current version of RxPHP v2., (*1)

Since the interop promise spec hasn't been adopted by any of the popular async php project, we've reverted back to defaulting to React promises in RxPHP v2., (*2)

~~Provides RxPHP 2 support for ReactPHP's Promises~~, (*3)

~~RxPHP v2 will only support async-interop promises by default. This project restores the ReactPHP Promise support found in RxPHP v1.~~, (*4)

Usage

From Observable


$observable = \Rx\Observable::of(42); $promise = \Rx\React\Promise::fromObservable($observable); $promise->then(function ($value) { echo "Value {$value}\n"; });

To Observable


$promise = \Rx\React\Promise::resolved(42); $observable = \Rx\React\Promise::toObservable($promise); $observable->subscribe(function ($value) { echo "Value {$value}\n"; });

The Versions

19/03 2017

dev-master

9999999-dev

RxPHP v2 support for ReactPHP's Promises

  Sources   Download

MIT

The Requires

 

by Matt Bonneau
by David Dan

promise react reactphp rxphp reactivex rx.php

07/03 2017

0.0.2

0.0.2.0

RxPHP v2 support for ReactPHP's Promises

  Sources   Download

MIT

The Requires

 

by Matt Bonneau
by David Dan

promise react reactphp rxphp reactivex rx.php

12/01 2017

0.0.1

0.0.1.0

RxPHP v2 support for ReactPHP's Promises

  Sources   Download

MIT

The Requires

 

by Matt Bonneau
by David Dan

promise react reactphp rxphp reactivex rx.php