tokio/examples
Jack Wrenn 660eac71f0
taskdump: implement task dumps for current-thread runtime (#5608)
Task dumps are snapshots of runtime state. Taskdumps are collected by
instrumenting Tokio's leaves to conditionally collect backtraces, which
are then coalesced per-task into execution tree traces.

This initial implementation only supports collecting taskdumps from
within the context of a current-thread runtime, and only `yield_now()`
is instrumented.
2023-04-27 12:59:20 +02:00
..
2021-03-09 19:54:10 +01:00

Examples of how to use Tokio

This directory contains a number of examples showcasing various capabilities of the tokio crate.

All examples can be executed with:

cargo run --example $name

A good starting point for the examples would be hello_world and echo. Additionally the tokio website contains additional guides for some of the examples.

For a larger "real world" example, see the mini-redis repository.

If you've got an example you'd like to see here, please feel free to open an issue. Otherwise if you've got an example you'd like to add, please feel free to make a PR!