Las palabras clave Async y Await se incluyeron en Visual Studio 2012.
The async and await keywords were introduced in Visual Studio 2012.
Primero, comencemos instalando el módulo async. js.
First, let's get started by installing the async. js module.
Múltiples bloques async son ejecutados en paralelo usando la función Async.
Multiple async blocks are executed in parallel using the Async.
Tengo la declaración del método decorada con la palabra clave async.
I have the method declaration decorated with the async keyword.
El operador Async Concat solo se utiliza en consultas remotas(consultas distribuidas).
The Asnyc Concat operator is used only in remote queries(distributed queries).
Respecto de las importaciones HTML no críticas,márcalas con el atributo async.
For non-critical HTML imports,mark them with the async attribute.
La declaración async function define una función asíncrona, que devuelve un objeto AsyncFunction.
The async function declaration defines an asynchronous function, which returns an AsyncFunction object.
Solo se puede usar el operador await dentro de un método declarado como async.
The await operator only can be used within a method declared as async.
Este plugin es compatible completamente con los plugins Async JavaScript y Autoptimize que hemos utilizado antes.
This plugin is fully compatible with the Async JavaScript and Autoptimize plugins that were used earlier.
Para nuestro próximo ejemplo de bucle,vamos a echar un vistazo a la función async. until.
For our next example of looping,we will take a look at the async. until function.
A menudo, si la secuencia de comandos puede usar el atributo async, también significa que no es esencial para la primera representación.
Often, if the script can use the async attribute, it also means it is not essential for the first render.
El API utiliza llamadas asíncronas,que pueden realizarse usando el mecanismo async/ await.
The API uses asynchronous calls,which can be performed using the async/ await programming.
Como en el ejemplo anterior, hemos utilizado el modificador async para convertir el controlador del evento Click en un método asíncrono.
As in the previous example, we used the async modifier to convert the Click event handler into an asynchronous method.
En la aplicación MultithreadingDemo,podemos seleccionar la opción Async/ Await del menú Demo.
In the MultithreadingDemo application,you can select the Async/ Await option from the Demo menu.
El atributo Async básicamente le dice al navegador que empiece a descargar el recurso de inmediato sin ralentizar análisis HTML.
The async attribute basically tells the browser to start downloading the resource right away without slowing down HTML parsing.
Algunas maneras fáciles de solucionar este problema es utilizar los plugins gratis Autoptimize o Async JavaScript.
A few easy ways to fix this is to utilize the free Autoptimize or Async JavaScript plugins.
Async Javascript esencialmente descarga el archivo durante el análisis HTML y hará una pausa en el analizador HTML para ejecutarlo cuando haya finalizado la descarga.
Async Javascript essentially downloads the file during HTML parsing and will pause the HTML parser to execute it when it has finished downloading.
Cuándo serán ejecutados los programas provistos por este elemento es algo que depende de la presencia de dos atributos:defer y async.
When will the scripts provided by this element be executed is something that depends on the presence of two attributes:defer and async.
La presencia del atributo async instruye a los navegadores a ejecutar los programas tan pronto como les sea posible, pero sin bloquear el proceso de carga del documento.
The presence of the async attribute instructs browsers to execute the scripts as soon as possible, but without blocking the document's load process.
Una tarea ejecutada con el operador await puede a su vez ser asíncrona y realizar llamadas de este tipo, con tal de quesea declarada usando el modificador async.
A task executed with the await operator can in turn be asynchronous and make calls of this type,provided that it is declared using the async modifier.
La librería core. async soluciona muchos problemas comunes de una forma elegante, limpiando el uso de llamadas de devolución y agregando primitivas simples para la concurrencia.
The core. async library solves many common problems in an elegant way, cleaning up event callback setup and adding simple concurrency primitives.
Básicamente, proporciona características de caching y la compresión HTTP, pero carece de recursos yoptimización de minificación JavaScript con atributos async y defer.
Basically, it provides caching features and HTTP compression, butlacks resource minification and JavaScript optimization with async and defer attributes.
Este problema puede ser reducido con buenas practicas de código(vea http://callbackhell. com/),usando un modulo como async, o incluso avanzando a características de ES6 como las promesas.
This problem can be reduced by good coding practices(see http://callbackhell.com/), using a module like async, or even moving to ES6 features like Promises.
Lamentablemente, no podemos utilizar async y aplazar los atributos para scripts en línea, de modo que la única manera para cargarlos después de que el documento ha sido cargado es moverlos a la parte inferior.
Unfortunately, we can't use async and defer attributes for inline scripts, so the only way to load them after the document has been loaded is moving them to the bottom.
Además, core. async es compatible con Clojure y ClojureScript(a pesar de la falta de hilos en JavaScript) utilizando las abstracciones propias de la plataforma para ofrecer una interfaz consistente en ambos lenguajes.
In addition, core. async is supported in both Clojure and ClojureScript(despite JavaScript's lack of threads), utilizing underlying platform abstractions to provide a consistent interface to both languages.
TypeScript utiliza el archivo s3. ts,el AWS SDK for JavaScript, la biblioteca async y un conjunto de archivos de biblioteca ECMAScript 6(ES6) para transponer el código TypeScript del archivo s3. ts a código JavaScript equivalente en un archivo llamado s3. js.
TypeScript uses the s3. ts file,the AWS SDK for JavaScript, the async library, and a set of ECMAScript 6(ES6) library files to transpile the TypeScript code in the s3. ts file into equivalent JavaScript code in a file named s3. js.
Múltiples bloques async son ejecutados en paralelo usando la función Async. Parallel que toma una lista de objetos async(en el ejemplo, asynctask es un objeto async) y crea otro objeto async para correr las tareas en las listas en paralelo.
Multiple async blocks can be executed in parallel using the Async. Parallel function that takes a list of async objects(in the example, asynctask is an async object) and creates another async object to run the tasks in the lists in parallel.
El mecanismo del que vamos a hablar se basa en el uso de async, un modificador que posibilita que un método o controlador de eventos realice llamadas asíncronas, y el operador await, que permite llamar a un método de forma asíncrona.
The mechanism we are going to talk about is based on the use of async, a modifier that allows that an event handler or method can make asynchronous calls, and the await operator, used to call a method asynchronously.
Agregar la palabra clave async a la etiqueta de secuencia de comandos indica al navegador que no bloquee la construcción del DOM mientras espera que la secuencia de comandos esté disponible, lo que puede mejorar el rendimiento de manera significativa.
Adding the async keyword to the script tag tells the browser not to block DOM construction while it waits for the script to become available, which can significantly improve performance.
Español
Dansk
Deutsch
Français
हिंदी
Italiano
Nederlands
Português
Русский
Tagalog
عربى
Български
বাংলা
Český
Ελληνικά
Suomi
עִברִית
Hrvatski
Magyar
Bahasa indonesia
日本語
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Norsk
Polski
Română
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Turkce
Українська
اردو
Tiếng việt
中文