Skip to content

cosock/cosock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

136 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cosock

cosock logo

cosock is a library that provides a coroutine executor for luasocket code. Unlike existing coroutine executors it aims to provide a socket facade API inside each coroutine that is as close to the native luasocket API as is possible.

Note: currenly the only goals are to provide the API as documented, undocumented APIs are out of scope for now (however, small quirks that are heavily depened on in the ecosystem will be considered).

For now see the tests folder for example usage.

Testing

To run all tests run:

luarocks test

Individual tests can be run from the repo root directly:

lua test/asyncify/asyncify-works.lua

About

A coroutine runtime for native luasocket code

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors