Working with Asynchrony Generically: A Tour of C++ Executorsresource (aka, scheduler) • A unit of lazy async work (aka, sender) • A completion handler (aka, receiver) • A small, initial set of generic async algorithms: • E.g., then, when_all, sync_wait, let_* nullopt. done_as_error(sender, error) → sender … commutes the done signal into an error.19 SENDER/RECEIVER CONTROL FLOW20 BASIC LIFETIME OF AN ASYNC OPERATION SCHEDULER schedule SENDER Implementation OF AN ASYNC OPERATION SCHEDULER schedule SENDER RECEIVER OPERATION STATE connect start …operation completes… … and notifies receiver … time passes… Implementation details of some algorithm;0 码力 | 121 页 | 7.73 MB | 6 月前3
使用硬件加速Tokio - 戴翔Channel allows a unidirectional flow of information between two end-points: the Sender and the Receiver. • Channel Type: SPSC, SPMC, MPMC, MPSC. Senders Receive Senders Senders Receive Receivers0 码力 | 17 页 | 1.66 MB | 1 年前3
Go读书会第二期Part4 – 语法基础:函数与方法 践行哲学,遵循惯例,认清本质,理解原理 • Init 函数 • 成为“一等公民” • defer 的惯用法与坑 • 变长参数函数妙用 • 方法的本质、 receiver 参数类型选择、方法集 合 Go 程序逻辑的基本承载单元 Part5 – 语法核心:接口 践行哲学,遵循惯例,认清本质,理解原理 • 接口的内部表示 • 接口设计 • 接口与组合0 码力 | 26 页 | 4.55 MB | 1 年前3
共 3 条
- 1













