You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i created a new observable by extending AbstractObservable . later on, i tried interval operation on the new object but this operation ignores the behavior of my own object and returns IntervalObservable. this makes my own functionality obsolete and makes it useless. I'm suggesting to change the behavior of the operator ; to don't return a IntervalObservable if i calling this method from my own observable . i think we can do this by defining new parameter to the operator witch is null able. this new parameter defines the type of the observable that i want to return. or we can change the functionality of the operator by defining new way. in this new way the interval operation wont return new different object .rather it modifies the behavior of the subscribe function itself .
class Observable extends RxObservable
{
publicfunctionAA(): void
{
printf("i'm AA coming from observable object\n");
}
publicfunctionBB(): void
{
printf("i'm BB coming from observable object\n");
}
publicfunctionCC(): void
{
printf("i'm CC coming from observable object\n");
}
protectedfunction_subscribe(ObserverInterface$observer): DisposableInterface
{
try
{
$this->AA();
$this->BB();
$this->CC();
$observer->onNext("call the completed function\n");
$observer->onCompleted();
$disposable = newEmptyDisposable();
return$disposable;
}
catch(Exception$e)
{
printf("this is the error: ".$e);
}
}
}
The text was updated successfully, but these errors were encountered:
i created a new observable by extending AbstractObservable . later on, i tried interval operation on the new object but this operation ignores the behavior of my own object and returns IntervalObservable. this makes my own functionality obsolete and makes it useless. I'm suggesting to change the behavior of the operator ; to don't return a IntervalObservable if i calling this method from my own observable . i think we can do this by defining new parameter to the operator witch is null able. this new parameter defines the type of the observable that i want to return. or we can change the functionality of the operator by defining new way. in this new way the interval operation wont return new different object .rather it modifies the behavior of the subscribe function itself .
The text was updated successfully, but these errors were encountered: