Giter Site home page Giter Site logo

async-rt-book's Introduction

Rust异步运行时基础部件

目前Rust使用最广的异步运行时是tokio,但tokio是一个十分完整的运行时,对于使用者来说几乎是一个黑盒,除非直接深入其源码,否则无法了解其结构与设计。这又使得tokio又像是一个无缝的蛋,当我们希望定制一些调度规则时,几乎是无从下手。

而smol作为tokio的“竞争对手”,其接口设计则好多了,将异步运行时拆分成相对独立的且小巧的几块(async-io, async-executor, async-task等等),能学习者能更好地了解异步运行时的结构,也能让使用者方便定制一些特定的规则。

那么这篇文章,大概顺着smol给出的设计思路,从头实现一个简单但齐全的异步运行时,让大家对异步运行时有一个基础的理解。

本文代码参考这里

(一直想写这篇文章,但耽搁了好久)

async-rt-book's People

Contributors

toetoe55 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.