跨平台事件循环异步库 libasync

码农软件 · 软件分类 · 作业/任务调度 · 2019-09-04 22:43:34

软件介绍

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

安装指导

  • 下载并安装 DMD 2.066.0+ from dlang.org

  • 下载病安装 dub 0.9.22-rc.2+ from code.dlang.org

  • 使用 Git 克隆代码库

  • 运行 dub test 来测试你的操作系统是否有代码库

  • 添加库到你的项目中,添加到依赖项中,使用 libasync.all 导入

  • 推荐的编辑器是 MonoDevelop

教程

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

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

本文地址:https://codercto.com/soft/d/13895.html

Rationality for Mortals

Rationality for Mortals

Gerd Gigerenzer / Oxford University Press, USA / 2008-05-02 / USD 65.00

Gerd Gigerenzer's influential work examines the rationality of individuals not from the perspective of logic or probability, but from the point of view of adaptation to the real world of human behavio......一起来看看 《Rationality for Mortals》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

URL 编码/解码
URL 编码/解码

URL 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试