The await expression causes async function execution to pause until a Promise is fulfilled, that is resolved or rejected, and to resume execution of the async function after fulfillment.
La expresión await provoca que la ejecución de una función async sea pausada hasta que una Promise sea terminada o rechazada, y regresa a la ejecución de la función async después del término.
When the async function returns a value, the Promise will be resolved with the returned value.
Cuando una función asíncrona devuelve un valor, la Promise será resuelta con el valor devuelto.
The async function declaration defines an asynchronous function, which returns an AsyncFunction object.
La declaración async function define una función asíncrona, que devuelve un objeto AsyncFunction.
That promise resolves with whatever the async function returns, or rejects with whatever the async function throws.
Description An async function can contain an await expression that pauses the execution of the async function and waits for the passed Promise's resolution, and then resumes the async function's execution and evaluates as the resolved value.
Descripción La expresión await provoca que la ejecución de una función async sea pausada hasta que una Promise sea terminada o rechazada, y regresa a la ejecución de la función async después del término.
An async function can contain an await expression, that pauses the execution of the async function and waits for the passed Promise's resolution, and then resumes the async function's execution and returns the resolved value.
Una función asíncrona puede contener una expresión await, que detiene la ejecución de la función asíncrona y espera la resolución de la Promise pasada, y después continúa la ejecución de la función async y devuelve el valor resuelto.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.