We couldn’t find this entry. Showing approximate results. Check your spelling or suggest adding this term to the dictionary.
generator function
função geradora
função generator
função de gerador
async function
The following code is the declaration of an example generator function.
O código seguinte é a declaração de um exemplo de uma generator function.
Description The yield keyword pauses generator function execution and the value of the expression following the yield keyword is returned to the generator's caller.
Descrição A palavra-chave yield pausa a execução de uma generator function e o valor da expressão em frente a palavra-chave yield é retornado para a chamada do generator.
Calling the next() method with an argument will resume the generator function execution, replacing the yield expression where execution was paused with the argument from next().
Chamar o método next() com um argumento resumirá a execução da função geradora, substituindo a expressão yield onde a execução foi parada com o argumento de next().
This function is an interface to the simple pseudo-random generator function rand provided by Standard C.
Esta função é um interface para a função geradora pseudo-randômica rand simples oferecida por C Padrão.
The heart of a generator function is the yield keyword.
O coração de uma função generator é a palavra chave yield.
For each finished test, the generator function got triggered, calling the next test in the queue.
Para cada teste terminado, a função generator era invocada, chamando o próximo teste na fila.
This also means that the same generator can't be iterated over multiple times: the generator will need to either be rebuilt by calling the generator function again, or cloned via the clone keyword.
Isso também significa que o generator não pode ser iterado múltiplas vezes: o generator precisará ser reconstruído chamando a função generator novamente, ou clonado usando a palavra chave clone.
Once there are no more values to be yielded, then the generator function can simply exit, and the calling code continues just as if an array has run out of values.
Uma vez que não há mais valores a serem produzidos, a função generator pode simplesmente sair, e a chamada de código continua como se um array tivesse executado os valores. Nota
The value property is the result of evaluating the yield expression, and done is a Boolean indicating whether or not the generator function has fully completed.
A propriedade value é o resultado da avaliação da expressão yield, e done é false, indicando que a generator function não foi totalmente completada.
When a generator function is called for the first time, an object of the internal Generator class is returned.
Quando uma função geradora é chamada uma primeira vez, um objeto interno de tipo Generator é retornado.
When a generator function is called, a new object of the internal Generator class is returned.
Quando uma função geradora é chamada uma primeira vez, um objeto interno de tipo Generator é retornado.
When a generator function is called for the first time, an object of the internal Generator class is returned.
<? php Quando uma função geradora é chamada uma primeira vez, um objeto interno de tipo Generator é retornado.
The yield keyword is used to pause and resume a generator function (function* or legacy generator function).
A palavra-chave yield é usada para pausar e resumir uma generator function (function* or generator function legada).
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.