跨平台事件循环异步库 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

Powerful

Powerful

Patty McCord / Missionday / 2018-1-25

Named by The Washington Post as one of the 11 Leadership Books to Read in 2018 When it comes to recruiting, motivating, and creating great teams, Patty McCord says most companies have it all wrong. Mc......一起来看看 《Powerful》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码