Miguel Pérez García
84b6d2b276
Removing duplicated tests
2019-12-12 18:34:02 -06:00
Miguel Pérez García
8de9f9b8e1
Merge branch 'future-timeout' of https://github.com/miker1423/async-std into future-timeout
2019-12-12 18:31:45 -06:00
Miguel Pérez García
33e7c87dfc
Adding example to docs
2019-12-05 21:19:02 -06:00
Miguel Pérez García
cc85533f7c
fixing format
2019-12-05 21:15:32 -06:00
Miguel Pérez García
4670388a56
Adding tests
2019-12-05 08:10:06 -06:00
Miguel Pérez García
c14c377974
Changing method signature
2019-12-05 08:09:58 -06:00
Miguel Pérez García
54fa559554
Changing scope of disclosure
2019-12-05 08:09:20 -06:00
Miguel Pérez García
1c2055fff0
Merge remote-tracking branch 'original/master' into future-timeout
2019-11-29 18:00:00 -06:00
Stjepan Glavina
bf9ee88815
Fix a typo
2019-11-27 16:29:29 +01:00
Stjepan Glavina
9627826756
Bump the version to 1.2.0
2019-11-27 16:14:43 +01:00
Stjepan Glavina
4ed15d67c9
Fix links in the changelog
2019-11-27 16:12:31 +01:00
Stjepan Glavina
0165d7f6d1
Add missing items to the changelog
2019-11-27 16:08:57 +01:00
Yoshua Wuyts
dba416608a
1.2.0 ( #589 )
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-27 16:05:15 +01:00
Yoshua Wuyts
68005661d9
fix Stream::throttle hot loop ( #584 )
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-27 15:47:27 +01:00
nasa
794e331761
Refactor join type ( #577 )
...
* refactor: update future join type
* test: update future join test
* update future::try_join
2019-11-27 13:38:38 +01:00
Yoshua Wuyts
63f7ea3081
Merge pull request #587 from async-rs/contributing
...
link to our contribution guidelines
2019-11-27 13:21:40 +01:00
Yoshua Wuyts
46cafffc31
Merge pull request #571 from killercup/more-errors
...
Add context to more errors
2019-11-27 01:54:27 +01:00
boats
0f30ab8c0a
Fix the docs and Debug output of BufWriter. ( #588 )
...
The BufWriter docs inaccurately stated that it flushes on drop, which it does
not do. This PR changes the docs, as well as the example, to highlight that
the user must explicitly flush a bufwriter.
There were also two places where the BufWriter code referred to it as a
BufReader: in the link to the std docs, and in the Debug output. Those have
also been fixed.
2019-11-26 14:23:10 +01:00
Yoshua Wuyts
e66e2e2b8f
link to our contribution guidelines
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-26 11:42:02 +01:00
Pascal Hertleif
56538ebd91
Improve verbose errors for socket addresses
...
Moves the point of adding error context to the net::addr module so that
we have access to the raw address input and can include it in the error
message.
2019-11-25 23:30:31 +01:00
Pascal Hertleif
aa7d1c27a4
Verbose errors: Apply suggestions
...
Co-Authored-By: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
2019-11-25 21:18:40 +01:00
Yoshua Wuyts
850b8ae9d0
Merge pull request #543 from k-nasa/stream_unzip
...
Add stream unzip
2019-11-25 20:25:44 +01:00
Yoshua Wuyts
ac7a796f82
Merge pull request #537 from k-nasa/ci_master
...
Enable CI on master branch
2019-11-25 12:53:37 +01:00
Miguel Pérez García
c1f7be5d42
Adding timeout extension method to Future trait
2019-11-23 11:40:07 -06:00
Yoshua Wuyts
50cefce803
Merge pull request #561 from async-rs/1.1.0
...
1.1.0
2019-11-21 22:01:34 +01:00
Yoshua Wuyts
3780ff7b44
1.1.0
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
changelog
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-21 21:49:32 +01:00
Yoshua Wuyts
c9a2e74789
Merge pull request #523 from async-rs/update-lib-example
...
polish lib.rs examples
2019-11-21 21:24:54 +01:00
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