Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.91 KB

async.md

File metadata and controls

46 lines (33 loc) · 1.91 KB

Async

  • System Threads

    • Kernel-level threads
  • Green Threads

    • User-level threads
  • Async Implementation at a high level has three major components

    • Executor
    • Reactor
    • XRoutine
  • Async

    • Transforms a block of code into a state machine that implements a trait called future
  • Await

    • Mechanism to run a future. It asynchronously waits for the future to complete.
  • mio provides several core abstractions for working with I/O resources, such as sockets, pipes, and devices.

  • It also supports advanced features such as epoll, kqueue, and IOCP on different platforms and convenient utility functions for working with I/O events, timeouts, and buffers.

References