Skip Navigation

Coroutines for Go

research.swtch.com

research!rsc: Coroutines for Go

This post is about why we need a coroutine package for Go, and what it would look like. But first, what are coroutines?

Every programmer today is familiar with function calls (subroutines): F calls G, which stops F and runs G. G does its work, potentially calling and waiting for other functions, and eventually returns. When G returns, G is gone and F continues running. In this pattern, only one function is running at a time, while its callers wait, all the way up the call stack.

Go programming language discussion @lemmy.ml

Coroutines for Go

TechNews @radiation.party

Coroutines for Go

Golang @programming.dev

research!rsc: Coroutines for Go

0 comments

No comments