Bones/node_modules/rx/ts/rx.backpressure-tests.ts

23 lines
501 B
TypeScript
Raw Normal View History

2017-05-17 13:45:25 -04:00
// 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);
}