- I have searched open and closed issues and pull requests for duplicates, using these search terms:
- I have checked the latest
main branch to see if this has already been fixed, in this file:
URL to the section(s) of the book with this problem:
https://doc.rust-lang.org/1.94.0/book/ch17-02-concurrency-with-async.html#listing-17-13
Description of the problem:
The example code explicitly includes 4 trpl::sleep(Duration::from_millis(1500)).await; calls, meaning that the program will take at least 4*1500=6000 ms to execute. However, after 6000 ms the default javascript timeout is exhausted, leading to Playground Communication: timeout
Suggested fix:
17-13timeoutmainbranch to see if this has already been fixed, in this file:book/listings/ch17-async-await/listing-17-13/src/main.rs
Lines 39 to 42 in 05d1142
book/src/ch17-02-concurrency-with-async.md
Lines 368 to 374 in 05d1142
book/.github/workflows/main.yml
Line 5 in 05d1142
URL to the section(s) of the book with this problem:
https://doc.rust-lang.org/1.94.0/book/ch17-02-concurrency-with-async.html#listing-17-13
Description of the problem:
The example code explicitly includes 4
trpl::sleep(Duration::from_millis(1500)).await;calls, meaning that the program will take at least 4*1500=6000 ms to execute. However, after 6000 ms the default javascript timeout is exhausted, leading toPlayground Communication: timeoutSuggested fix: