Repository navigation
What's New
Tu 1.2.0 带来完整的 asyncio 异步运行时 与 net IO 调度器:在原有 async/await 之上,可直接写多线程网络服务与定时任务。
Asyncio runtime
- Multi-thread / current-thread
Builder,spawn+JoinHandle - 时间轮:
sleep/ interval - 同步原语:Notify、oneshot、Mutex、Semaphore、RwLock、Barrier
select/join/timeout
Net I/O
- epoll 驱动的就绪调度
- TCP / UDP / Unix domain sockets
- 与 time、signal 可同开
Tooling & demos
tu run:编译并直接运行examples/httpserver、examples/httpclienttests/asyncio集成回归
Install
git clone https://github.com/tu-lang/tu.git
cd tu && git checkout v1.2.0
sudo make installLinux x86_64 · 零依赖 · 全静态链接