SkillAgentSearch skills...

Cosock

A coroutine runtime for native luasocket code

Install / Use

/learn @cosock/Cosock
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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
View on GitHub
GitHub Stars10
CategoryDevelopment
Updated4mo ago
Forks4

Languages

Lua

Security Score

72/100

Audited on Nov 10, 2025

No findings