Skip to main content
to yield

to yield

2 8.5
To pause a function and return a value so it can continue later
  • verb
  • /jiːld/
  • Specialized
translation icon : ceder el control
  • In this programming model, you will yield control back to the calling function until you're ready to continue.

Examples

  • Only the glue code deals with continuations, yielding, resuming, and so on.

    Blog text (8)
  • To minimize pipeline holes due to data dependencies, the L1 D-cache access is optimized to yield a one-cycle load-to-use penalty.

    Academic text (2000)
  • Of course, the task could mark itself as not ready and then yield.

    Blog text (20)
  • Yield path complete yields a path complete test suite.

  • As I understand, the count function on a singular date would yield a result of 1 always, regardless of the date.

    Blog text (32)
  • The cache was flushed when you finally yielded the CPU to another process.

    Blog text (28)
  • The combustion timing is calculated based on the measured pressure signal from each cylinder, and the mixing valve position is then scheduled by the control algorithm to yield the desired combustion timing.

    Academic text (2007)
  • The function will yield a value each time it is called, allowing for incremental processing.

  • When the generator function runs, it will yield successive values to be consumed by the loop.

Antonyms

1.0

To keep doing something without stopping

Idioms

9.8

To stop working or to die after a long time of getting worse

Phrasal Verbs

1 7.4

Give something to another person because you are forced to do so

Compounds

7 4.3

Producing a large amount of crops, goods, or money compared with others

high-yield bond
  • Specialized
1 6.3

A loan to a company that pays high interest because it has high risk

egg yield
  • Specialized
3.2

The number of eggs a hen lays in a given time, like a day or a year

marketable yield
  • Specialized
4.2

Part of a crop that is good enough to sell

The amount of milk a cow or herd produces in a period

Surface Forms

yield infinitive
yielded past
yielded past participle
yielding present participle
yields third person singular

Etymology

The programming sense of yield is easy to remember from the root gieldan 'to give' — it means to pause and 'give' control back to the program that started the function, then continue later and produce values step by step.