added playground links to show problem using thread park/unpark
This commit is contained in:
@@ -274,7 +274,7 @@ fn main() {
|
|||||||
// length of the array is encoded in the array itself as the second value.
|
// length of the array is encoded in the array itself as the second value.
|
||||||
let vtable = vec that showcases how such an error could occur. You can also read a bit more about this in [issue 2010](https://github.com/rust-lang/futures-rs/pull/2010)
|
||||||
> executor. We'll se how we can fix this at the end of this chapter.
|
> in the futures crate.
|
||||||
|
|
||||||
## The Reactor
|
## The Reactor
|
||||||
|
|
||||||
@@ -821,7 +821,13 @@ fn mywaker_wake(s: &MyWaker) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
And that's really all there is to it. The next chapter shows our finished code with this
|
And that's really all there is to it.
|
||||||
|
|
||||||
|
> If you checked out the playground link that showcased how park/unpark could [cause subtle
|
||||||
|
> problems](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=b2343661fe3d271c91c6977ab8e681d0)
|
||||||
|
> you can [check out this example](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=bebef0f8a8ce6a9d0d32442cc8381595) which shows how our final version avoids this problem.
|
||||||
|
|
||||||
|
The next chapter shows our finished code with this
|
||||||
improvement which you can explore further if you wish.
|
improvement which you can explore further if you wish.
|
||||||
|
|
||||||
[mio]: https://github.com/tokio-rs/mio
|
[mio]: https://github.com/tokio-rs/mio
|
||||||
|
|||||||
Reference in New Issue
Block a user