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-0217 days ago932 downloads
20200726.53-0217 days ago2,812 downloads
20200726.52-0217 days ago1,546 downloads
20200726.51-0217 days ago51,667 downloads
20200603.53-0265 days ago620 downloads
20200603.52-0265 days ago346 downloads
20200603.51-0265 days ago14,081 downloads
20190813.53-01 year ago3,595 downloads
20190813.52-01 year ago1,806 downloads
20190813.51-01 year ago70,924 downloads
20190731.53-01 year ago243 downloads
20190731.52-01 year ago918 downloads
20190731.51-01 year ago3,811 downloads
20171014.53-03 years ago5,473 downloads
20171014.52-03 years ago2,078 downloads
20171014.51-03 years ago60,747 downloads
20161215.53-04 years ago1,451 downloads
20161215.52-04 years ago958 downloads
20161215.51-04 years ago2,952 downloads
20161214.53-04 years ago82 downloads
20161214.52-04 years ago64 downloads
20161214.51-04 years ago238 downloads
20161018.53-04 years ago350 downloads
20161018.52-04 years ago279 downloads
20161018.51-04 years ago1,093 downloads
20160812.53-14 years ago64 downloads
20160812.53-04 years ago(revision: 2)201 downloads
20160812.52-14 years ago74 downloads
20160812.52-04 years ago(revision: 2)266 downloads
20160812.51-14 years ago116 downloads
20160812.51-04 years ago(revision: 2)621 downloads
20160808.53-04 years ago(revision: 2)29 downloads
20160808.52-04 years ago(revision: 2)25 downloads
20160808.51-04 years ago(revision: 2)34 downloads
20160316.53-04 years ago502 downloads
20160316.52-04 years ago473 downloads
20160316.51-04 years ago1,502 downloads
20150907.53-05 years ago332 downloads
20150907.52-05 years ago364 downloads
20150907.51-05 years ago1,148 downloads
20150119.53-15 years ago(revision: 2)35 downloads
20150119.53-05 years ago14 downloads
20150119.52-15 years ago34 downloads
20150119.52-06 years ago193 downloads
20150119.51-15 years ago(revision: 2)84 downloads
20150119.51-06 years ago146 downloads
scm-54dev217 days ago5 downloads
scm-53dev4 years ago(revision: 5)130 downloads
scm-52dev4 years ago(revision: 6)9 downloads
scm-51dev4 years ago(revision: 5)25 downloads


lua == 5.4

Dependency for

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