Code Monkey home page Code Monkey logo

ardan-1hourasync-rust's Introduction

1 Hour Async

This is the code accompanying the 1 Hour Dive into Async live-stream.

Included Projects

  1. Block On with Futures. Using block_on to start an async runtime.
  2. Block On with Tokio. Using block_on with options to start a Tokio runtime.
  3. Hello Tokio. Start a runtime and await your first function.
  4. Tokio Joining. Using join to run multiple tasks concurrently. Switch between single-threaded and multi-threaded execution to see the difference in output.
  5. Tokio Spawn. Spawn tasks in the background, either detached or for access later.
  6. Tokio Yield. Yield control from an async task, to ensure another one can run.
  7. Tokio Select. Select the first of several futures to return.
  8. Tokio Blocking. The right way and the wrong way to perform a blocking function in Tokio.
  9. Tokio Spawn Blocking. Spawn a blocking function in the background without tying up the Tokio runtime.
  10. Tokio MPSC Channels. Create an async channel between tasks.
  11. Tokio Multiple Channels. Create several channels and select the first one to return.
  12. Thread to Tokio. Send messages from a thread and into an async process.
  13. Tokio Stream Generators. You can use streams as generators.
  14. Tokio File IO as a Stream. Stream files to pace IO, even in a single-threaded runtime.
  15. Tracing: logging. Setup trace-based logging.
  16. Tracing: structures. Log to JSON instead.
  17. Adapting Streams. Adapt a stream in-flight and learn about pinning.

ardan-1hourasync-rust's People

Contributors

thebracket 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.