[−][src]Crate futures_lite
A lightweight async prelude.
This crate is a subset of futures that compiles an order of magnitude faster, fixes minor warts in its API, fills in some obvious gaps, and removes almost all unsafe code from it.
In short, this crate aims to be more enjoyable than futures but still fully compatible with it.
Examples
use futures_lite::*; fn main() { future::block_on(async { println!("Hello world!"); }) }
Re-exports
pub use crate::future::Future; |
pub use crate::future::FutureExt; |
pub use crate::io::AsyncBufRead; |
pub use crate::io::AsyncBufReadExt; |
pub use crate::io::AsyncRead; |
pub use crate::io::AsyncReadExt; |
pub use crate::io::AsyncSeek; |
pub use crate::io::AsyncSeekExt; |
pub use crate::io::AsyncWrite; |
pub use crate::io::AsyncWriteExt; |
pub use crate::stream::Stream; |
pub use crate::stream::StreamExt; |
Modules
future | Combinators for the |
io | Tools and combinators for I/O. |
stream | Combinators for the |
Macros
pin | Pins a variable of type |
ready | Unwraps |