mirror of https://github.com/rust-lang/async-book
Added `` around function
This commit is contained in:
parent
24861ba313
commit
d9f4e062fa
|
@ -4,7 +4,7 @@ Spawning allows you to run a new asynchronous task in the background. This allow
|
|||
while it is running.
|
||||
|
||||
Say we have a web server that wants to accept connections without blocking the main thread.
|
||||
To achieve this, we can use the async_std::task::spawn function to create and run a new task that handles the
|
||||
To achieve this, we can use the `async_std::task::spawn` function to create and run a new task that handles the
|
||||
connections. This function takes a future and returns a JoinHandle, which can be used to wait for the result of the
|
||||
task once it's completed.
|
||||
|
||||
|
|
Loading…
Reference in New Issue