from Hacker News

Coroutines for Golang

by gedw99 on 10/17/23, 10:55 AM with 1 comments

  • by gedw99 on 10/17/23, 10:55 AM

    Coroutines are make up for the difficulties of using go routines.

    Coroutines can explicitly yield control to their callers and other coroutines and send and receive data across yield points.

    https://github.com/stealthrocket/coroutine has the code and a basic sample.