You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
requestedState===DataSourceState.Interrupted&&this.state===DataSourceState.Initializing// don't go to interrupted from initializing (recoverable errors when initializing are not noteworthy)
@@ -50,31 +59,51 @@ export default class DataSourceStatusManager {
50
59
}
51
60
}
52
61
53
-
off(listener: DataSourceStatusCallback){
54
-
this.emitter.off('dataSourceStatus',listener);
55
-
}
56
-
62
+
/**
63
+
* @param listener that will be registered to receive updates
64
+
*/
57
65
on(listener: DataSourceStatusCallback){
58
66
this.emitter.on('dataSourceStatus',listener);
59
67
}
60
68
69
+
/**
70
+
* @param listener that will be unregisted and will no longer receive updates
71
+
*/
72
+
off(listener: DataSourceStatusCallback){
73
+
this.emitter.off('dataSourceStatus',listener);
74
+
}
75
+
76
+
/**
77
+
* Sets the state to {@link DataSourceState.Valid}
78
+
*/
61
79
setValid(){
62
80
this.updateState(DataSourceState.Valid);
63
81
}
64
82
83
+
/**
84
+
* Sets the state to {@link DataSourceState.SetOffline}
0 commit comments