string>) => { debounceTime(200), // switchMapallows returning an observable rather than maps array if (return this.myService.getDealerReps(this.dealerID, se
下面是我在其中一个页面中的函数: checkPrinterStatus() { //I want to this this function into an observable if(printerSettings.isConnected) { switchMap如果是connect,我会创建一个轮询,调用getConnPrinterStatus(),如果状态发生变