Skip to content

Commit 24e275d

Browse files
committed
Disable playground on thread::sleep examples
The playground times out, and the point of these examples is seeing the pause in between the printlns, which the playground doesn't do. Fixes #2607.
1 parent f0dbd1c commit 24e275d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ch16-02-message-passing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
One increasingly popular approach to ensuring safe concurrency is *message
44
passing*, where threads or actors communicate by sending each other messages
55
containing data. Here’s the idea in a slogan from [the Go language
6-
documentation](https://golang.org/doc/effective_go.html#concurrency):
6+
documentation](https://golang.org/doc/effective_go.html#concurrency):
77
“Do not communicate by sharing memory; instead, share memory by communicating.”
88

99
One major tool Rust has for accomplishing message-sending concurrency is the
@@ -176,7 +176,7 @@ pause for a second between each message.
176176

177177
<span class="filename">Filename: src/main.rs</span>
178178

179-
```rust
179+
```rust,noplayground
180180
{{#rustdoc_include ../listings/ch16-fearless-concurrency/listing-16-10/src/main.rs}}
181181
```
182182

@@ -219,7 +219,7 @@ so by cloning the transmitting half of the channel, as shown in Listing 16-11:
219219

220220
<span class="filename">Filename: src/main.rs</span>
221221

222-
```rust
222+
```rust,noplayground
223223
{{#rustdoc_include ../listings/ch16-fearless-concurrency/listing-16-11/src/main.rs:here}}
224224
```
225225

0 commit comments

Comments
 (0)