coroutine-demo

Coroutine demo for Rust

Stars
15

Coroutine I/O Demo

This is a demonstration project for coroutine-rs.

What is this for?

We are going to add a scheduler (work-stealing) into coroutine-rs, but we need to test before actually write it into the library.

Goal

  • Asynchronous I/O with MIO

  • Single-threaded eventloop based Coroutine scheduler

  • Multi-threaded eventloop based Coroutine sheduler (some weird bug need to be fixed)

  • Network I/O library

  • Synchronization between Coroutines (Mutex, CondVar, ...)

  • Coroutine-local storage

  • Windows support

Known bugs

  • Echo server may be blocked when enabling multi-thread mode

  • Simple HTTP server cannot handle too much concurrent requests