If the promise rejects, spawn causes our yield statement to throw an exception, which we can catch with normal JavaScript try/catch.
Si se rechaza la promesa, spawn provoca una excepción en nuestra instrucción yield. Podemos detectar esta excepción con la función convencional try y catch de JavaScript.
Other results
Like JavaScript's try/catch, the error is caught and subsequent code continues, so the spinner is always hidden, which is what we want.
Como Try/Catch de JavaScript, se detecta el error y continúa el código siguiente; el indicador de carga está siempre oculto. Esto es lo que deseamos.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.