fix(core): update

This commit is contained in:
2020-05-26 00:18:02 +00:00
parent 71edd16d65
commit 5e2d11980c
11 changed files with 2509 additions and 785 deletions

View File

@@ -1,14 +1,12 @@
import * as plugins from './smartrx.plugins';
import { Observable, Subscription } from 'rxjs';
import { Deferred } from '@pushrocks/smartpromise';
/**
* ObservableIntake
*/
export class ObservableIntake<T> {
public observable: Observable<T>;
public observable: plugins.rxjs.Observable<T>;
public completed: Promise<void>;
private completedDeffered: Deferred<void>;
private completedDeffered: plugins.smartpromise.Deferred<void>;
private observableFunctions: any = {
next: payloadArg => {
// nothing
@@ -22,7 +20,7 @@ export class ObservableIntake<T> {
private payloadBuffer = [];
constructor() {
this.observable = Observable.create(observerArg => {
this.observable = plugins.rxjs.Observable.create(observerArg => {
this.observableFunctions.next = (...args) => {
return observerArg.next(...args);
};