微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

libasync <a href="https://github.com/etcimon/libasync#features"></a>特性<a href="https://github.com/etcimon/libasync#limitations"></a>限制 跨平台事件循环异步库

程序名称:libasync <a href="https://github.com/etcimon/libasync#features"></a>特性<a href="https://github.com/etcimon/libasync#limitations"></a>限制

授权协议: MIT

操作系统: Windows

开发语言:

libasync <a href="https://github.com/etcimon/libasync#features"></a>特性<a href="https://github.com/etcimon/libasync#limitations"></a>限制 介绍

libasync 异步库(beta),完全使用 D 语言编写的。libasync
支持跨平台事件循环,连接增强和并发设施。libasync 是非常轻量级的异步任务,可以很自然的嵌入到 D 语言项目中(要求 2.066.0 及以上版本)。

特性

(*) 支持 Mac, Linux, Windows 和 FreeBSD - 平台支持 Mac OS X (10.8), Linux (Fedora
20) 和 Windows (8.1),兼容 99% 的桌面操作系统用户

  • 支持多线程

  • 异步 TCP 连接

  • 异步 TCP 监听器

  • 文件操作

  • DNS resolver

  • File/Folder Watcher

  • UDP 连接

  • Timer

  • Signal

  • Notifier

限制

  • One EventLoop per thread

  • Futures and Promises

  • Manual error management

安装指导

教程

当前只提供两个示例: examples/tcp_listener 和 examples/tcp_client。必须先在服务器端测试再在客户端使用。

更多示例请看 source/libasync/test.d。

libasync <a href="https://github.com/etcimon/libasync#features"></a>特性<a href="https://github.com/etcimon/libasync#limitations"></a>限制 官网

https://github.com/etcimon/libasync

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐