mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 10:49:55 +00:00
commit
5fbeb52b69
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ While the `Future` trait has existed in Rust for a while, it was inconvenient to
|
|||
|
||||
Amazingly little difference, right? All we did is label the function `async` and insert 2 special commands: `.await`.
|
||||
|
||||
This function sets up a deferred computation. When this function is called, it will produce a `Future<Output=Result<String, io::Error>>` instead of immediately returning the `Result`. (Or, more precisely, generate a type for you that implements `Future<Output=Result<String, io::Error>>`.)
|
||||
This function sets up a deferred computation. When this function is called, it will produce a `Future<Output=Result<String, io::Error>>` instead of immediately returning a `Result<String, io::Error>`. (Or, more precisely, generate a type for you that implements `Future<Output=Result<String, io::Error>>`.)
|
||||
|
||||
## What does `.await` do?
|
||||
|
||||
|
|
Loading…
Reference in a new issue