Também podemos usar um trabalho do JavaScript para uma computação longa, é claro, mas devido à ilustração, vamos mantê-lo no thread da interface e usar o setImmediate para dividir a operação em etapas.
We can of course use a JavaScript worker for a long computation, of course, but for the sake of illustration we'll just keep this on the UI thread and use setImmediate to break the operation into steps.
JavaScript Para uma visão geral das mudanças implementadas em JavaScript 1.8.5, veja Novidades no JavaScript 1.8.5.
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.