mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
parent
4ae76132c1
commit
a9da59882c
@ -62,7 +62,8 @@ pub fn main() {
|
|||||||
// implementations, each providing different scheduling characteristics.
|
// implementations, each providing different scheduling characteristics.
|
||||||
//
|
//
|
||||||
// The `current_thread` executor multiplexes all scheduled tasks on the
|
// The `current_thread` executor multiplexes all scheduled tasks on the
|
||||||
// current thread. This means that spawned tasks must not implement `Send`.
|
// current thread. This means that spawned tasks are not required to
|
||||||
|
// implement `Send`.
|
||||||
current_thread::run(|_| {
|
current_thread::run(|_| {
|
||||||
// Now, the server task must be spawned.
|
// Now, the server task must be spawned.
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user