Bones/node_modules/rx/ts/rx.backpressure-tests.ts
SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00

23 lines
501 B
TypeScript

// Tests for RxJS-BackPressure TypeScript definitions
// Tests by Igor Oleinikov <https://github.com/Igorbek>
///<reference path="rx.d.ts" />
///<reference path="rx.backpressure.d.ts" />
function testPausable() {
var o: Rx.Observable<string>;
var pauser = new Rx.Subject<boolean>();
var p = o.pausable(pauser);
p = o.pausableBuffered(pauser);
}
function testControlled() {
var o: Rx.Observable<string>;
var c = o.controlled();
var d: Rx.IDisposable = c.request();
d = c.request(5);
}