Coroutine is a small asymmetric coroutine library written in C. It is inspired by Lua-style coroutine behavior and uses a schedule-based model. Developers first open a schedule, create coroutines inside it, and then resume them from the same thread that opened the schedule. Coroutines in the same schedule share the stack, which makes it possible to create many coroutines without heavy memory overhead. The project is useful for C developers who want cooperative multitasking without depending on a larger runtime. Its design is minimal, low-level, and focused on giving programmers explicit control over coroutine creation, suspension, and resumption.

Features

  • Asymmetric coroutine library for C
  • Lua-inspired coroutine behavior
  • Schedule-based coroutine management
  • Shared stack for low memory usage
  • Explicit coroutine resume control
  • Lightweight cooperative multitasking

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Coroutine

Coroutine Web Site

Other Useful Business Software
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
Try It Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Coroutine!

Additional Project Details

Programming Language

C

Related Categories

C Libraries

Registered

2026-06-04