serverless-spy
Version:
CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.
17 lines (15 loc) • 473 B
text/typescript
/// <reference path="./controlled.ts" />
module Rx {
export interface ControlledObservable<T> {
/**
* Attaches a stop and wait observable to the current observable.
* @returns {Observable} A stop and wait observable.
*/
stopAndWait(): Observable<T>;
}
}
(function() {
var observer: Rx.Observable<boolean>;
var controlledObserver: Rx.ControlledObservable<boolean>;
observer = controlledObserver.stopAndWait();
})