test_executors 0.2.0

Simple async executors for testing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# test_executors

![logo](art/logo.png)

This crate provides extremely simple, yet useful, async executors.  They are primarily useful for writing unit tests 
without bringing in a full-blown executor such as [tokio](https://tokio.rs).

The executors are:
* spin_on: polls a future in a busyloop on the current thread.
* sleep_on: polls a future on the current thread, sleeping between polls.
* spawn_on: spawns a future on a new thread, polling it there.

# some_executor

This crate implements the [some_executor](https://crates.io/crates/some_executor) trait for all executors, allowing them
to be used in executor-agnostic code.