Skip to content
Someguynamedpie edited this page Sep 15, 2017 · 1 revision

Synchronous

is a library to ease the use of coroutines. Through tasks and task schedulers, you are able to think of them as semi-true threads.

Below is a list of built-in task schedulers.

Name Description
Snoozer Provides sleep() functionality
LuaSocket Provides a simulated blocking API for (primarily TCP) sockets that will not block the other threads Note, that this is not enabled by default! Run
synchronous.registerTaskManager(require'synchronous.luasocket')
to enable.

You can implement your own easily, just look at Snoozer for an example.

Clone this wiki locally