Commit Graph

66 Commits (79c2345e0f02a9e6da36dcab39ffac44112a9344)

Author SHA1 Message Date
Jacob Rothstein ae817ca1a2
don't poll the reader again after eof while waiting for the writer to flush 3 years ago
Marc-Antoine Perennou 8274995e70 stabilize new channels
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
4 years ago
dignifiedquire 8c5238743b remove deprecated sync::channel 4 years ago
Marc-Antoine Perennou 8823c460fc rand: update to 0.8
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
4 years ago
dignifiedquire 36366cd4d9 fix warnings 4 years ago
Friedel Ziegelmayer e9cb238f49
fix wasm and nostd builds
Co-authored-by: Jacob Rothstein <hi@jbr.me>
4 years ago
Yoshua Wuyts bd297473cc
Merge pull request #856 from yshui/master
Fix #855
4 years ago
Yoshua Wuyts 1319def758
Merge pull request #853 from r3v2d0g/udp-peek
Add peek{,from} methods to UdpSocket
4 years ago
Marc-Antoine Perennou 14d3e9865b switch from tempdir to tempfile
Uses a more recent version of rand

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
4 years ago
Yuxuan Shui 59874d639c
tests: add test case for UnixStream::into_raw_fd
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
4 years ago
Matthieu Le brazidec (r3v2d0g) 47ce9a370c
Add peek{,from} methods to UdpSocket 4 years ago
Yoshua Wuyts c82b1efb69
fix(stream): add send guards on collect
Closes #639 

Co-authored-by: dignifiedquire <me@dignifiedquire.com>
5 years ago
dignifiedquire 8f17e9275b test: try to stabilize CI 5 years ago
Friedel Ziegelmayer 5d55fa7a47
Merge pull request #701 from olegnn/flat_map_fixed 5 years ago
Afirez 9fa3ce3fd6 Add UdpSocket::PeerAddr #307 5 years ago
Oleg Nosov df22d87d09
Removed unnecessary links + hotfix 5 years ago
Oleg Nosov 924e5a3f41
Merge remote-tracking branch 'origin/master' into flat_map_fixed 5 years ago
Friedel Ziegelmayer e12cf80ab0
fix: allow for recursive block-on calls
Fixes #798,#795,#760
5 years ago
Friedel Ziegelmayer 2b6c7fedff
Merge pull request #772 from jbr/unixstream-clone 5 years ago
Azriel Hoh baead51a28 Reduces duration in timeout test.
Tries to get CI to pass.
5 years ago
Jacob Rothstein cd5e17fe87
make UnixStream Clone 5 years ago
Friedel Ziegelmayer e4c4c93d29
Test and fix 32 bit targets 5 years ago
dignifiedquire 1214bc2dee increase timeouts 5 years ago
dignifiedquire e4df1405c1 feat: add basic wasm support 5 years ago
dignifiedquire fd6ae40817 add timeout stress test 5 years ago
dignifiedquire 1308fbdf55 switch to smol instead of an internal runtime 5 years ago
Thayne McCombs db438abb8f
Implement async_std::sync::Condvar (#369)
* Implement async_std::sync::Condvar

Part of #217

* More rigourous detection of notification for condvar

* Use state of Waker instead of AtomicUsize to keep track of if task was
notified.

* Add test for notify_all

* Implement wait_timeout_until

And add warnings about spurious wakeups to wait and wait_timeout

* Use WakerSet for Condvar

This should also address concerns about spurious wakeups.

* Add test for wait_timeout with no lock held

* Add comments describing AwaitNotify struct

And remove an unnneded comment in a Debug implementation
5 years ago
Yoshua Wuyts 19fd7a4084 fix channel tests
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
nasa cc19592f80
Revert "Stabilize most stream method and remove unnecessary macros" 5 years ago
k-nasa f33d7f40ab fix test 5 years ago
k-nasa ec4b09ecd0 fix test code 5 years ago
Oleg Nosov 68063adddf
Add link to tests 5 years ago
Oleg Nosov 32068942a6
Fixed `flatten` 5 years ago
Oleg Nosov 85c32ef9d2
Use `assert` without `if`-clause 5 years ago
Oleg Nosov b68be72763
Use `assert` instead of `panic` 5 years ago
Oleg Nosov c80915e216
Dont spawn thread in tests 5 years ago
Oleg Nosov 303ac90b7c
Fixed `flat_map` 5 years ago
Stjepan Glavina 1d875836a2
Implement Clone for TcpStream (#689)
* Implement Clone for TcpStream

* Update examples

* Remove accidentally added examples
5 years ago
k-nasa 44e38eae59 fix open_file test code 5 years ago
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.
5 years ago
Pascal Hertleif e01f07d72a Add context to more errors
cc #569
5 years ago
Pascal Hertleif c704643296 Remove verbose-errors cargo feature 5 years ago
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).
5 years ago
Stjepan Glavina bc24503382
Fix deadlock when all receivers are dropped (#474)
* Fix deadlock when all receivers are dropped

* Add a comment to explain the behavior of try_send

* Disable clippy
5 years ago
Aleksey Kladov fa91d7f856 Stream::merge does not end prematurely if one stream is delayed (#437)
* Stream::merge does not end prematurely if one stream is delayed

* `cargo test` without features works

* Stream::merge works correctly for unfused streams
5 years ago
Yoshua Wuyts c413e717da
Merge pull request #429 from markhildreth/tcp_smoke_tests
Added TCP smoke tests against std Listener and Stream
5 years ago
Stjepan Glavina 3dd59d7056
Refactor the task module (#421)
* Refactor the task module

* Fix clippy warning

* Simplify task-local entries

* Reduce the amount of future wrapping

* Cleanup

* Simplify stealing
5 years ago
Mark Hildreth c6c2bfa456 Added TCP smoke tests against std Listener and Stream 5 years ago
k-nasa 7fe2a1bbce fix clippy::cognitive_complexity 5 years ago
k-nasa c9d958d309 $cargo fix -Z unstable-options --clippy --features unstable 5 years ago