Continuation Queues: Embeddable asynchronous networking, threading, and notification framework for Lua on Unix.

$ luarocks install cqueues

cqueues is a type of event loop for Lua, except it's not a classic event loop. It doesn't use callbacks—neither as part of the API nor internally—but instead you communicate with an event controller by the yielding and resumption of Lua coroutines using objects that adhere to a simple interface.

cqueues are also stackable. Each instantiated cqueue is a pollable object which can be polled from another cqueue, or another event loop system entirely. The design is meant to be unintrusive, composable, and embeddable within existing applications—such as Apache or Nginx—or used standalone. It maintains no global state and never blocks your thread of execution.

cqueues includes a sockets library with DNS, buffering, end-of-line translation, SSL/TLS, and descriptor passing support builtin. Domain querying, connection establishment, and SSL negotiation are handled transparently as part of a state machine entered with every I/O operation, so users can read and write immediately upon instantiating the object, as if opening a regular file.

cqueues also includes modules for handling signals, threads, and file change notifications using native kernel facilities—such as signalfd on Linux, or Solaris PORT_SOURCE_FILE for file events—and accessible through easy to use interfaces which abstract the different kernel facilities.

Additional modules include a light-weight user-defined event system using the condition variable pattern, and a comprehensive interface for DNS querying.


20200726.54-01 year ago4,746 downloads
20200726.53-01 year ago10,371 downloads
20200726.52-01 year ago6,207 downloads
20200726.51-01 year ago145,846 downloads
20200603.53-01 year ago639 downloads
20200603.52-01 year ago348 downloads
20200603.51-01 year ago14,083 downloads
20190813.53-02 years ago3,606 downloads
20190813.52-02 years ago1,828 downloads
20190813.51-02 years ago71,089 downloads
20190731.53-02 years ago250 downloads
20190731.52-02 years ago1,754 downloads
20190731.51-02 years ago3,813 downloads
20171014.53-04 years ago5,480 downloads
20171014.52-04 years ago2,080 downloads
20171014.51-04 years ago60,757 downloads
20161215.53-05 years ago1,458 downloads
20161215.52-05 years ago959 downloads
20161215.51-05 years ago2,954 downloads
20161214.53-05 years ago88 downloads
20161214.52-05 years ago66 downloads
20161214.51-05 years ago246 downloads
20161018.53-05 years ago355 downloads
20161018.52-05 years ago280 downloads
20161018.51-05 years ago1,094 downloads
20160812.53-15 years ago70 downloads
20160812.53-05 years ago(revision: 2)206 downloads
20160812.52-15 years ago75 downloads
20160812.52-05 years ago(revision: 2)267 downloads
20160812.51-15 years ago117 downloads
20160812.51-05 years ago(revision: 2)622 downloads
20160808.53-05 years ago(revision: 2)34 downloads
20160808.52-05 years ago(revision: 2)26 downloads
20160808.51-05 years ago(revision: 2)35 downloads
20160316.53-06 years ago507 downloads
20160316.52-06 years ago475 downloads
20160316.51-06 years ago1,503 downloads
20150907.53-06 years ago338 downloads
20150907.52-06 years ago365 downloads
20150907.51-06 years ago1,149 downloads
20150119.53-16 years ago(revision: 2)40 downloads
20150119.53-07 years ago17 downloads
20150119.52-16 years ago35 downloads
20150119.52-07 years ago197 downloads
20150119.51-16 years ago(revision: 2)85 downloads
20150119.51-07 years ago149 downloads
scm-54dev1 year ago15 downloads
scm-53dev5 years ago(revision: 5)148 downloads
scm-52dev5 years ago(revision: 6)8,851 downloads
scm-51dev5 years ago(revision: 5)48 downloads


lua == 5.4

Dependency for

circle, cqueues-pgsql, daemonparts, hectorm-fork-http, http, l, lacord, lredis, lua-irc, prosody, prosody, quest, redis-client, telegram, tulip, wch, web-driver, xcq-subprocess