/async-wait-test

toying around with rust async/await, furures 0.1 compat, tokio, blocking i/o.

Primary LanguageRust

async-await-test

Toying around with tokio 0.1, futures 0.3-alpha, and async/wait.

src/main.rs implements a very basic HTTP fileserver, using tokio 0.1, futures 0.3-alpha, and async/await.

The 0.1 compatibility methods from (nightly) futures@0.3 are used to map the new futures from/to the old (stable) ones that tokio uses.

The code is commented extensively.

Docs used

For futures 0.3, 0.1 compat, tokio, async/await:

For working with tokio_threadpool::blocking: