2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-04-27 02:36:52 +00:00
Commit graph

958 commits

Author SHA1 Message Date
dignifiedquire
1c1c168e1b fix(timer): ensure the runtime is working for timers 2020-06-18 12:37:14 +02:00
dignifiedquire
093d640ad7 fix(net): ensure the reactor and runtime are running
If this is not done, then reactor is not running, resulting in the sockets not actually connecting.

Closes #818
2020-06-18 12:11:37 +02:00
Afirez
9fa3ce3fd6 Add UdpSocket::PeerAddr #307 2020-06-14 18:45:27 +08:00
dignifiedquire
e9c6ea873c chore: release v1.6.1 2020-06-11 13:17:31 +02:00
dignifiedquire
5a1a681d68 fix(rt): use task::block_on on spawned threads
This makes sure to capture threads into the recursive block_on detection.
2020-06-04 18:25:07 +02:00
Friedel Ziegelmayer
e12cf80ab0
fix: allow for recursive block-on calls
Fixes #798,#795,#760
2020-06-04 13:19:03 +02:00
Friedel Ziegelmayer
631105b650
Merge pull request #806 from async-rs/fix-feature-unstable 2020-06-04 12:23:32 +02:00
Friedel Ziegelmayer
0897b9184a
Merge pull request #804 from async-rs/tokio02-feature 2020-06-04 12:23:12 +02:00
Konrad Borowski
721760a7a6 Remove stdio lock methods
Fixes #805.
2020-06-04 09:05:14 +02:00
dignifiedquire
8389041414 fix 2020-06-03 18:50:12 +02:00
dignifiedquire
8943ba82dd fix nostd 2020-06-03 18:43:19 +02:00
dignifiedquire
52c72426c1 fix: do not require the runtime to use unstable features 2020-06-03 18:38:20 +02:00
Yoshua Wuyts
166c469d1c Add the tokio02 feature flag 2020-06-03 12:09:33 +02:00
jerry73204
d60e7cc27d Fix wrong slice index when reading a file 2020-05-29 19:18:06 +08:00
dignifiedquire
e1c8638173 chore: release v1.6.0 2020-05-22 23:08:42 +02:00
dignifiedquire
06eea4225b feat: add PartialEq and Eq for channel Errors
Closes #792
2020-05-22 22:08:23 +02:00
Heinz N. Gies
69806403c6
Fix readme for BufRead
The `BufRead` readme points to `BufReadExt` being in `async_std::prelude` while it currently lives in `async_std::io::prelude`
2020-05-20 14:24:06 +02:00
Friedel Ziegelmayer
955befd746
Merge pull request #790 from async-rs/1-6-0-beta-2 2020-05-20 11:18:38 +02:00
k-nasa
d30603affe Merge branch 'master' into fix_doc_test 2020-05-20 13:50:39 +09:00
dignifiedquire
c9ecb5bbbd prepare v1.6.0-beta.2 2020-05-19 11:29:36 +02:00
Jacob Rothstein
9e6a76af04
feat: add env vars to configure the runtime threadpool size and name 2020-05-19 11:16:01 +02:00
Friedel Ziegelmayer
2b6c7fedff
Merge pull request #772 from jbr/unixstream-clone 2020-05-13 18:03:47 +02:00
Azriel Hoh
d3e59370e7 Switches wasm-timer for futures-timer. 2020-05-13 10:14:05 +12:00
Jacob Rothstein
cd5e17fe87
make UnixStream Clone 2020-05-10 18:21:45 -07:00
dignifiedquire
19170aead4 use local file 2020-05-09 11:44:16 +02:00
dignifiedquire
2762ec5800 fix(fs): use smol::block_on for drop handling of File
Ref #766
2020-05-09 11:36:13 +02:00
dignifiedquire
bd6a7e200b prepare v1.6.0-beta.1 2020-05-07 23:20:56 +02:00
Friedel Ziegelmayer
e4c4c93d29
Test and fix 32 bit targets 2020-05-07 23:20:44 +02:00
Thayne McCombs
6f6fced103
feat: implement Barrier using Condvar 2020-05-07 22:26:46 +02:00
dignifiedquire
27c605b4c9 cr: bring back trace call 2020-05-07 20:56:52 +02:00
dignifiedquire
faea222b9c fix: use run instead of block_on 2020-05-02 20:27:50 +02:00
dignifiedquire
e0928463b1 fix windows traits 2020-05-02 20:27:50 +02:00
dignifiedquire
92532612b7 mark spawn_local unstable 2020-05-02 20:27:50 +02:00
dignifiedquire
1a6d4f6a2f fix windows trait declarations for rawsocket 2020-05-02 20:27:50 +02:00
dignifiedquire
280b1a4344 remove invalid doc comment 2020-05-02 20:27:50 +02:00
dignifiedquire
48dd683535 fix feature settings 2020-05-02 20:27:50 +02:00
dignifiedquire
e4df1405c1 feat: add basic wasm support 2020-05-02 20:27:50 +02:00
dignifiedquire
3161a4e449 add some missing windows imports 2020-05-02 20:27:50 +02:00
dignifiedquire
228cc59b3b feat: add spawn_local 2020-05-02 20:27:50 +02:00
dignifiedquire
0a7a52aed5 update to work on smol/master 2020-05-02 20:27:50 +02:00
dignifiedquire
10c8b9a6d8 silence must use 2020-05-02 20:27:50 +02:00
dignifiedquire
ab9d6554aa switch to smol::Timer 2020-05-02 20:27:50 +02:00
dignifiedquire
f5fa0d7e4e avoid boxing futures 2020-05-02 20:27:50 +02:00
dignifiedquire
b96afc41dc implement task locals 2020-05-02 20:27:50 +02:00
dignifiedquire
75ab7219df bring back random 2020-05-02 20:27:50 +02:00
dignifiedquire
e082634b5e fix spawning 2020-05-02 20:27:50 +02:00
dignifiedquire
fc9ee0dfdd keep std::sync::Arc 2020-05-02 20:27:50 +02:00
dignifiedquire
1308fbdf55 switch to smol instead of an internal runtime 2020-05-02 20:27:50 +02:00
Friedel Ziegelmayer
b446cd0230
Merge pull request #748 from async-rs/fix/scheduler-2
fix(rt): bring back dynamic machines
2020-04-12 15:22:51 +02:00
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
2020-04-12 13:35:18 +02:00