waaaa 0.1.1

WebAssembly, Abstracted Away
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use futures_util::Stream as FutStream;
use std::future::Future as StdFuture;

crate::dispatch_to_submodules!();

/// A future that is `Send` on native, but `!Send` on web
pub trait Future: Send + StdFuture {}
impl<T: Send + StdFuture> Future for T {}

/// A stream that is `Send` on native, but `!Send` on web
pub trait Stream: Send + FutStream {}
impl<T: Send + FutStream> Stream for T {}