Our website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker.

Responsive image


Coroutine

Coroutines are computer program components that allow execution to be suspended and resumed, generalizing subroutines for cooperative multitasking. Coroutines are well-suited for implementing familiar program components such as cooperative tasks, exceptions, event loops, iterators, infinite lists and pipes.

They have been described as "functions whose execution you can pause".[1]

Melvin Conway coined the term coroutine in 1958 when he applied it to the construction of an assembly program.[2] The first published explanation of the coroutine appeared later, in 1963.[3]

  1. ^ "How the heck does async/await work in Python 3.5?". Tall, Snarky Canadian. 2016-02-11. Archived from the original on 2023-01-10. Retrieved 2023-01-10.
  2. ^ Cite error: The named reference KnuthVol1_1_4_5 was invoked but never defined (see the help page).
  3. ^ Cite error: The named reference Conway1963 was invoked but never defined (see the help page).

Previous Page Next Page






Koprogram Czech Korutine Danish Koroutine German Corrutina Spanish Coroutine French コルーチン Japanese Сопрограмма KK 코루틴 Korean Współprogram Polish Corrotina Portuguese

Responsive image

Responsive image