mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
RxJS-BackPressure: added tests.
This commit is contained in:
1 parent
3a272478da
commit
064bcb14a7
1 file changed
+22
@@ -0,0 +1,22 @@
|
||||
// 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);
|
||||
}
|
||||
Reference in new issue
Block a user