Software /
code /
prosody
Comparison
teal-src/util/poll.d.tl @ 12316:6bb2f660f689
util.poll: Add support for the poll() API
Might be better than select(), more portable than epoll.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 23 Feb 2022 20:31:03 +0100 |
parent | 12315:cf2086a1bd45 |
comparison
equal
deleted
inserted
replaced
12315:cf2086a1bd45 | 12316:6bb2f660f689 |
---|---|
15 getfd : function (state) : integer | 15 getfd : function (state) : integer |
16 end | 16 end |
17 | 17 |
18 local record lib | 18 local record lib |
19 new : function () : state | 19 new : function () : state |
20 EEXIST : integer | |
21 EMFILE : integer | |
20 ENOENT : integer | 22 ENOENT : integer |
21 EEXIST : integer | |
22 enum api_backend | 23 enum api_backend |
23 "epoll" | 24 "epoll" |
25 "poll" | |
24 "select" | 26 "select" |
25 end | 27 end |
26 api : api_backend | 28 api : api_backend |
27 end | 29 end |
28 | 30 |