RxPHP v2.0.0 Release Notes
Release Date: 2017-03-21 // about 7 years ago-
๐ Changes and Additions
- โ Added global static
Scheduler
class that allows setting scheduler factory callables - โฑ Schedulers are now passed in during
Observable
construction or into operators as needed - โฑ Static Observable constructors and operators will get scheduler from global static
Scheduler
if not specified - PHP 7 is required
- ๐ HHVM support was removed
- All files now
declare(strict_types=1)
- ๐ป
ObserverInterface::onError
now takes aThrowable
parameter instead ofException
- ๐
subscribeCallback
has been deprecated in favor ofsubscribe
which now takes callables or anObserverInterface
implementation - ๐
doOnNext
anddoOnEach
have been deprecated in favor ofdo
and follows the same syntax assubscribe
- ๐
catchError
has been deprecated in favor ofcatch
- ๐
just
has been deprecated in favor ofof
- ๐
emptyObservable
has been deprecated in favor ofempty
- โ
switchLatest
has been deprecated in favor ofswitch
Observable
is now abstract and requires subclasses to define_subscribe
- โ Added
toPromise
andfromPromise
operators - โ Marble tests are now supported
- โฑ
timeout
now throwsTimeoutException
to allow detection of timeouts down stream - Parameter and return types have been added
- โ Added global static