项目作者: lukashoracek

项目描述 :
Lua coroutine/task scheduler
高级语言: Lua
项目地址: git://github.com/lukashoracek/lua-scheduler.git
创建时间: 2020-07-15T10:22:10Z
项目社区:https://github.com/lukashoracek/lua-scheduler

开源协议:MIT License

下载


Lua coroutine scheduler

How does this work?

Every coroutine has to pause itself using coroutine.yield in order for the scheduler to resume another coroutine. Coroutines get resumed if they asked the scheduler to resume them in specified time using scheduler.sleep. It is possible to monitor each coroutine’s performance.

Example

See example in example.lua

License

Copyright (c) 2020-2021 Lukáš Horáček
MIT Licensed