while (true){
                  
                  
                        do some promise based stuff 
                  
                  
                      }
                  
                  
                  }
                  
                  
                  then 
                  
                  
                  myvar = something();
                  
                  
                  
                  
                  
                  is there a way I can cancel the something function (raising an error is fine.) from somewhere else using myvar ?
                  
                  
                
only if something returns something that is cancellable
So there must be a function you are calling here which is the slow one
Обсуждают сегодня