<p>New release (<a href="https://github.com/npat-efault/poller/releases/tag/v2.0.0">2.0.0</a>) of the "<a href="https://github.com/npat-efault/poller">poller</a>" (file-descriptor multiplexer) package. This release features support for more systems (previously poller worked only on Linux) using a fallback select(2)-based implementation. Package "poller" is now expected to work on all POSIX (most Unix-like) systems.</p>
<p><a href="https://github.com/npat-efault/poller">https://github.com/npat-efault/poller</a></p>
<blockquote>
<p>Package poller is a file-descriptor multiplexer. It allows concurent Read and Write operations from and to multiple file-descriptors without allocating one OS thread for every blocked operation. It operates similarly to Go's netpoller (which multiplexes network connections) without requiring special support from the Go runtime. It can be used with tty devices, character devices, pipes, FIFOs, and any file-descriptor that is poll-able (can be used with select(2), epoll(7), etc.) In addition, package poller allows the user to set timeouts (deadlines) for read and write operations, and also allows for safe cancelation of blocked read and write operations; a Close from another go-routine safely cancels ongoing (blocked) read and write operations.</p>
<p>In effect, poller provides semantics similar to what Go runitime/netpoll provides for network connections, to other types of Unix file-descriptors.</p>
</blockquote>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传