A fast and small async-aware oneshot channel.
Features:
no_std
support.```rust
fn successonethread() {
let (s,r) = oneshot::
Crap numbers from my shitty 2015 macbook pro:
test create ... bench: 131 ns/iter (+/- 10)
test create_send ... bench: 142 ns/iter (+/- 6)
test create_send_recv ... bench: 156 ns/iter (+/- 33)
So even on this thing, 6.5 million create-send-receives a second?
Copyright (c) 2020 James Laver, async-oneshot contributors.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.