Skip to content

Commit 084ea38

Browse files
committedMay 6, 2017
feat(VirtualTestScheduler): implements initial VirtualTestScheduler interface
1 parent 9c56037 commit 084ea38

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
 

‎src/VirtualTestScheduler.ts

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { VirtualTimeScheduler } from 'rxjs/scheduler/VirtualTimeScheduler';
2+
3+
/**
4+
* Configuration options for scheduler instance.
5+
*
6+
*/
7+
export interface SchedulerStartOptions {
8+
/**
9+
* Represents virtual time when scheduler instance is created, start to watch observables
10+
*/
11+
created: number;
12+
13+
subscribed: number;
14+
unsubscribed: number;
15+
}
16+
17+
/**
18+
* Exposes interfaces to control scheduler runs based on virtual time frame,
19+
* allows to assert / inspect observables synchronously
20+
*
21+
*/
22+
export interface VirtualTestScheduler extends VirtualTimeScheduler {
23+
readonly isFlushing: boolean;
24+
}

0 commit comments

Comments
 (0)