luv

Bare libuv bindings for Lua enabling async I/O operations

brewmacoslinux
Try with needOr install directly
Source

About

Bare libuv bindings for lua

Commands

luv

Examples

Load luv module in Lua to access async I/O capabilities$ lua -e "local uv = require('luv'); print(uv.version())"
Create async TCP server using luv bindings$ lua -e "local uv = require('luv'); local server = uv.new_tcp(); server:bind('127.0.0.1', 8080); server:listen(128, function(err) print('Connection') end); uv.run()"
Perform non-blocking file operations with luv$ lua -e "local uv = require('luv'); uv.fs_open('file.txt', 'r', 0o644, function(err, fd) print(fd) end); uv.run()"