Commit graph

1289 commits

Author SHA1 Message Date
Yoshua Wuyts
cffacf7fa3
feedback from review
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-21 21:21:19 +01:00
Yoshua Wuyts
02e1d7e5ea
Merge pull request #574 from stjepang/ignore-unread-errors
Ignore seek errors in poll_unread
2019-11-21 18:32:55 +01:00
laizy
ec5415358f simplify AllFuture and AnyFuture (#572) 2019-11-21 18:03:23 +01:00
Alejandro Martinez Ruiz
ba1ee2d204 Fix a-chat tutorial issues (#573)
* tutorial/receiving_messages: fix future output type bound

* tutorial/receiving_messages: remove unneeded message trimming

Trimming was done twice on messages, so one of the two instances can
be removed. I personally think removing the first instance, in which
we are splitting names from messages makes the code more readable
than removing the second instance, but other examples further in
the tutorial show the second instance removed.

* tutorial/receiving_messages: declare use of TcpStream and io::BufReader

Readers couldn't see the `use` lines corresponding to these two
structures.

* tutorial/connecting_readers_and_writers: typos and grammar fixes

* tutorial/all_together: remove unneeded use async_std::io

* tutorial: use SinkExt consistently from futures::sink::SinkExt

* tutorial/handling_disconnection: hide mpsc use clause and remove empty lines

The empty lines translate to the output making it look weird.

* tutorial/handling_disconnection: fix typos

* tutorial/handling_disconnection: use ? in broker_handle.await

We were happy to return an Err variant from the broker_handle before
and nothing has changed in this regard, so bubbling it up to run().
2019-11-21 18:03:10 +01:00
Stjepan Glavina
16edec3464 Ignore seek errors in poll_unread 2019-11-21 17:50:30 +01:00
Pascal Hertleif
e01f07d72a Add context to more errors
cc #569
2019-11-21 00:27:47 +01:00
Yoshua Wuyts
b3d30de4a1 mark windows fs APIs as "unstable" (#567)
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-20 14:58:49 +01:00
Yoshua Wuyts
6f19165e0e
Merge pull request #568 from stjepang/fix-random
Fix rng use in Stream::merge
2019-11-20 14:08:16 +01:00
nasa
d146d95a39
Update src/stream/stream/mod.rs
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
2019-11-20 21:38:42 +09:00
Stjepan Glavina
5fba3a0928 Fix rng use in Stream::merge 2019-11-20 13:24:18 +01:00
Yoshua Wuyts
2ca03cabe6
Merge pull request #552 from hhggit/win_symlink
add os::windows::symlink_{dir,file}
2019-11-20 13:17:39 +01:00
hhggit
72ed4eb4fd
Update mod.rs 2019-11-20 19:51:01 +08:00
Yoshua Wuyts
77800ab3f9
Merge pull request #526 from yjhmelody/refactor-dir
refactor io dir to be same with std and export IntoInnerError
2019-11-20 12:35:04 +01:00
Yoshua Wuyts
8ea920c9f0
Merge pull request #546 from k-nasa/fix_clippy
Fix clippy warn
2019-11-20 12:26:28 +01:00
Yoshua Wuyts
d1189f9974
Merge pull request #548 from yjhmelody/fix-stream-code-style
fix stream code style
2019-11-20 12:25:11 +01:00
Yoshua Wuyts
3f8ec5a007
Merge pull request #551 from killercup/feature/verbose-errors
verbose errors feature
2019-11-20 12:22:58 +01:00
nasa
3bc4d293dd
Merge pull request #503 from Razican/random_merge
Randomize Stream::merge to improve the throughput.
2019-11-20 08:42:50 +09:00
Yoshua Wuyts
f24b3a4520
Merge pull request #559 from k-nasa/fix_max_by_key
Fix stream max_by_key and min_by_key
2019-11-19 23:43:46 +01:00
razican
72ca2c1a24
Improved the code with some minor changes 2019-11-19 21:14:56 +01:00
k-nasa
b5e66c4f93 refactor: Refactoring option type handling 2019-11-20 00:38:51 +09:00
k-nasa
080875edc9 update min_by_key doc 2019-11-20 00:25:48 +09:00
k-nasa
ca71ad073b fix stream min_by_key mistake 2019-11-20 00:25:35 +09:00
k-nasa
667bbc1019 doc: update doc test 2019-11-20 00:18:11 +09:00
k-nasa
64b2e10b93 fix max_by_key mistake 2019-11-20 00:17:29 +09:00
k-nasa
314a75da28 fix typo 2019-11-20 00:00:54 +09:00
Pascal Hertleif
c704643296 Remove verbose-errors cargo feature 2019-11-19 13:15:48 +01:00
Yoshua Wuyts
c6622475b2
Merge pull request #555 from stjepang/optimize-cargo-check
Macro optimization to reduce compilation times
2019-11-19 05:15:58 +01:00
Stjepan Glavina
65afd41a33
Once doesn't need Unpin bound (#554) 2019-11-19 05:04:18 +01:00
Stjepan Glavina
d3e7f32a30 Macro optimization to reduce compilation times 2019-11-18 15:47:45 +00:00
Razican
f6829859fe
Fixed deduplication of code 2019-11-18 16:39:21 +01:00
hhggit
2c9b558d14 add os::windows::symlink_{dir,file} 2019-11-18 10:20:07 +08:00
Pascal Hertleif
99ddfb3f93 Wrap code more clearly in cfg blocks 2019-11-17 23:11:11 +01:00
Pascal Hertleif
8ce3e78952 verbose errors feature
This adds a new "verbose-errors" feature flag to async-std that enables
wrapping certain errors in structures with more context. As an example,
we use it in `fs::File::{open,create}` to add the given path to the
error message (something that is lacking in std to annoyance of many).
2019-11-17 21:54:44 +01:00
sclaire-1
b2aaa8b825
Edit tutorial: implementing_a_client.md
Edited to improve reading flow
2019-11-16 13:02:17 -08:00
yjhmelody
223fcc30ee fix code style for stream 2019-11-17 00:35:56 +08:00
k-nasa
76975a4441 Merge branch 'master' into fix_clippy 2019-11-16 02:41:39 +09:00
Yoshua Wuyts
355e2eded8
Merge pull request #547 from async-rs/unpin-successors-test
remove pin_mut from successors test
2019-11-15 18:24:58 +01:00
Yoshua Wuyts
6cc9e4dd2b
Merge pull request #544 from async-rs/update-futures-timer
update futures-timer & other deps
2019-11-15 18:12:03 +01:00
Yoshua Wuyts
ee23ba6e94
Merge pull request #545 from yjhmelody/stream-partition-patch
use `as_mut` for stream-partition
2019-11-15 18:08:51 +01:00
Yoshua Wuyts
d68dc659b2
remove pin_mut from successors test
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-15 18:08:00 +01:00
Yoshua Wuyts
b5c3fb8bb5
Merge pull request #363 from felipesere/async-successors
Async successors
2019-11-15 18:04:10 +01:00
k-nasa
7d616c695d refactor: change to as_mut 2019-11-16 01:58:45 +09:00
yjhmelody
a69b3a8a9e use as_mut for stream-partition 2019-11-16 00:54:50 +08:00
k-nasa
a05b6a3810 fix: mutable ref 2019-11-16 01:36:53 +09:00
k-nasa
6cbf48f12d fix clippy warn 2019-11-16 01:29:16 +09:00
k-nasa
91ee4c7b9f doc: Add stream unzip doc 2019-11-16 01:16:48 +09:00
k-nasa
603b3c5085 add: Add stream unzip 2019-11-16 01:16:35 +09:00
Yoshua Wuyts
693a7257b8
Merge pull request #538 from k-nasa/stream_by_ref
Add stream by_ref
2019-11-15 17:14:17 +01:00
Yoshua Wuyts
8779c04dc7
upgrade all deps
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-15 16:59:58 +01:00
Yoshua Wuyts
3564be9c0c
update futures-timer dep
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-15 16:58:33 +01:00