async-context 0.1.1

Provide context to async functions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
# async-content

This crate provides an easy way to provide context to async functions.

Use `provide_async_context` to provide the context:
```rust
provide_async_context(16, async {
    with_async_context(|my_number| {
        assert_eq!(my_number, 16);
    })
}).await
```