File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ with the `async` / `await` model.
21
21
22
22
The [ ` WouldBlock ` ] ( enum.Error.html ) error variant signals that the operation
23
23
can't be completed * right now* and would need to block to complete.
24
- [ ` WouldBlock ` ] ( enum.Error.html ) is a special error in the sense that's not
24
+ [ ` WouldBlock ` ] ( enum.Error.html ) is a special error in the sense that it 's not
25
25
* fatal* ; the operation can still be completed by retrying again later.
26
26
27
27
[ ` nb::Result ` ] ( type.Result.html ) is based on the API of
@@ -32,12 +32,10 @@ which has a `WouldBlock` variant in its
32
32
We can map [ ` WouldBlock ` ] ( enum.Error.html ) to different blocking and
33
33
non-blocking models:
34
34
35
- - In blocking mode: [ ` WouldBlock ` ] ( enum.Error.html ) means try again right
36
- now (i.e. busy wait)
37
- - In ` futures ` mode: [ ` WouldBlock ` ] ( enum.Error.html ) means
38
- [ ` Async::NotReady ` ] ( https://docs.rs/futures )
39
- - In ` await ` mode: [ ` WouldBlock ` ] ( enum.Error.html ) means ` yield `
40
- (suspend the generator)
35
+ - In blocking mode, [ ` WouldBlock ` ] ( enum.Error.html ) means try again right
36
+ now, i.e. busy waiting.
37
+ - In ` async ` mode, [ ` WouldBlock ` ] ( enum.Error.html ) means
38
+ [ ` Poll::Pending ` ] ( https://doc.rust-lang.org/core/task/enum.Poll.html#variant.Pending ) .
41
39
42
40
43
41
## Minimum Supported Rust Version (MSRV)
You can’t perform that action at this time.
0 commit comments