Created By vladimir

A variant of functions that enables concurrency via cooperative multitasking

A co-routine is a function that can be called by another function. It allows two or more functions to run concurrently.

Theoretical Children Concepts

A theoretical concept proposes a solution to a theoretical problem
add concept

There are no concepts yet. Help the community by adding one yourself!


Articles, tutorials, courses or books

"What is a Coroutine Anyway?" (North Bay Python 2019)

Feb. 9, 2019 by John Reese Video

1 Reviews
North Bay Python is a single-track conference that features a carefully curated set of talks that represent the diverse Python community and their various areas of interest. This talk will go over the concept of coroutines, which are a type of function, and how the AsyncIO framework uses them.

Coroutines and Tasks — Python 3

Feb. 10, 2022 by official docs Article

No reviews yet. Contribute
The official documentation on coroutines and tasks for Python 3. Really good written so that a new programmer with some basic background of programming and python can understand. Has examples.

Python 3: send method of generators discussion

Feb. 11, 2010 by stackoverflow Article

No reviews yet. Contribute
Discussion thread on stackoverflow explaining the use of send method in python generators. Generators and coroutines is a complex topic in python

What are the main uses for "yield from"

Feb. 11, 2013 by stackoverflow Article

No reviews yet. Contribute
Discussion thread on stackoverflow about the "yield from" expression, introduced in python 3.3. Also touches on .send method. - What are the situations where "yield from" is useful? - What is the classic use case? - Why is it compared to micro-threads?

Run asynchronous tasks using coroutines

Feb. 11, 2010 by Arnau Sanchez Article

1 Reviews
A thorough described guide (recipe) for implementing coroutines at a basic level in python using simple generators with send method. It builds an async task runner for a threaded task.