2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-29 00:35:31 +00:00
Commit graph

1642 commits

Author SHA1 Message Date
Martin Glagla
7fecd0d710 add task::try_current 2021-02-02 19:25:28 +01:00
nasa
4d9499c277
Merge pull request #945 from bugadani/patch-1
Docs: fix link to io
2021-02-01 09:40:05 +09:00
Dániel Buga
b05fa450c7
Docs: fix link to io 2021-01-29 15:55:37 +01:00
Jeremiah Senkpiel
09f2c5fce1
Merge pull request #920 from ooesili/task-arc-docs-typo-fix
Fix link in typo in src/task/mod.rs
2021-01-27 15:06:53 -08:00
Yoshua Wuyts
a4fb173352
Merge pull request #944 from jackinloadup/patch-1
Fix typo in DoubleEndedStream docs
2021-01-25 12:11:18 +01:00
Lucas Riutzel
e11a7ecf36
Fix typo in DoubleEndedStream docs 2021-01-24 21:18:14 +00:00
Friedel Ziegelmayer
af66efe540
Merge pull request #941 from theo3/fix-tcp-vecio
Fix vectored IO for TcpStream
2021-01-20 16:11:16 +01:00
Theo Bogusta
a46464deab Fix vectored IO for TcpStream
Implements `Write::poll_write_vectored` and `Read::poll_read_vectored`
on `TcpStream` using the vectored IO methods on the underlying stream.
Previously, the trait's default implementation was used, which just
called `poll_write` and `poll_read` once for each `IoSlice`.
2021-01-19 14:28:35 -05:00
Yoshua Wuyts
6278fdc724
Merge pull request #937 from sunfishcode/main
Implement Clone for File.
2021-01-15 18:18:31 +01:00
Dan Gohman
09e99843e4 Implement Clone for File.
Implement `Clone` for `File` so that `File`s can be passed into closures
for use in `spawn_blocking`. `File`'s contents are already wrapped in
`Arc`s, so the implementation of `clone` is straightforward.

This also aligns with `TcpStream` which already implements `Clone` using
its internal `Arc`.
2021-01-15 09:08:37 -08:00
Yoshua Wuyts
b210ee3628 bump Cargo.toml to 1.9.0 2021-01-15 17:24:54 +01:00
Yoshua Wuyts
171e4f914b
Merge pull request #936 from async-rs/1.9.0
Add 1.9.0 release notes
2021-01-15 17:23:19 +01:00
Yoshua Wuyts
8fcb24339a Add 1.9.0 release notes 2021-01-15 17:09:51 +01:00
Yoshua Wuyts
b854b67d3d
Merge pull request #934 from Keruspe/channels
stabilize new channels
2021-01-15 16:45:01 +01:00
Marc-Antoine Perennou
8274995e70 stabilize new channels
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2021-01-15 09:53:57 +01:00
Friedel Ziegelmayer
b1b8355c16
Merge pull request #933 from async-rs/remove-old-channel
remove deprecated sync::channel
2021-01-15 09:49:14 +01:00
dignifiedquire
8c5238743b remove deprecated sync::channel 2021-01-13 11:20:29 +01:00
Jesús Rubio
684ab185fe
docs: update cargo-edit link in the installation section
The project `cargo-add` has been deprecated in favor of `cargo-edit`: https://github.com/withoutboats/cargo-add
2021-01-13 11:19:58 +01:00
Marc-Antoine Perennou
ac19c660c5
Update async-global-executor and add tokio feature for tokio 1.0
Co-authored-by: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
2021-01-13 11:11:28 +01:00
Koxiaet
4a3f963810
feat: use async-lock for RwLock and Barrier 2021-01-13 11:10:43 +01:00
Friedel Ziegelmayer
1184a7f97f
Merge pull request #923 from Keruspe/rand 2021-01-13 11:06:03 +01:00
Friedel Ziegelmayer
38f85828f0
Merge pull request #930 from micaelbergeron/patch-1
Fix a typo for [sic] FuturesExt trait
2021-01-07 10:27:34 +01:00
Micaël Bergeron
7eaf577b78
Fix a typo for [sic] FuturesExt trait
The trait that is being referred to here is called `futures::future::FutureExt`.
2021-01-06 12:47:26 -05:00
Yoshua Wuyts
81cc56762a
Merge pull request #927 from taiki-e/compare_and_swap
Replace deprecated compare_and_swap with compare_exchange
2021-01-02 01:53:14 +01:00
Taiki Endo
ffd46f75ca Replace deprecated compare_and_swap with compare_exchange 2020-12-31 18:49:53 +09:00
Yoshua Wuyts
5484f5b6c8
Merge pull request #926 from surechen/master
edit a small typo for stream. for issue #860
2020-12-30 23:35:54 +01:00
surechen
47b22fff56 edit Small typo for Stream 2020-12-30 17:14:18 +08:00
Marc-Antoine Perennou
dbbf311344 try to fix wasm
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-12-23 22:25:43 +01:00
Marc-Antoine Perennou
8823c460fc rand: update to 0.8
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-12-23 22:12:19 +01:00
Wesley Merkel
01949b505b Fix link in typo in src/task/mod.rs 2020-12-11 14:05:05 -06:00
Yoshua Wuyts
fde2f58610
Merge pull request #917 from async-rs/v1.8.0
v1.8.0
2020-12-08 23:14:25 +01:00
Yoshua Wuyts
c738d73bd7 v1.8.0
Update CHANGELOG.md
2020-12-08 23:13:40 +01:00
Yoshua Wuyts
2757969f5d
Merge pull request #918 from async-rs/restore-prior-process-exports
Restore sync process exports
2020-12-08 23:12:50 +01:00
Yoshua Wuyts
34e9ff3cd2 Restore sync process exports 2020-12-08 23:04:03 +01:00
Yoshua Wuyts
9cd0578826
Merge pull request #916 from async-rs/async-process
feat: add process module
2020-12-08 22:50:28 +01:00
Yoshua Wuyts
f8f1eacc9a Attempt 2 at fixing docs on windows 2020-12-08 22:40:31 +01:00
Yoshua Wuyts
92f5038ed6 attempt to fix docs builds 2020-12-08 22:08:44 +01:00
Yoshua Wuyts
415d0d1e51
Merge pull request #732 from hhggit/timeout_repeat
make StreamExt::timeout(d).next() behave like future::timeout(d, s.next())
2020-12-04 18:13:44 +01:00
Yoshua Wuyts
6ae69c94d2
Merge pull request #915 from async-rs/feat-new-channels
feat: new channels
2020-12-04 18:04:45 +01:00
dignifiedquire
151025fa38 fixup 2020-12-01 16:10:51 +01:00
dignifiedquire
7b896c0bf4 manual reexports 2020-12-01 16:02:00 +01:00
dignifiedquire
1f6bb8b01a feat: add process module
Reexport based on async-process
2020-12-01 15:51:38 +01:00
dignifiedquire
da236ae39b more deprecation fixes 2020-12-01 15:48:21 +01:00
dignifiedquire
36366cd4d9 fix warnings 2020-12-01 15:25:11 +01:00
dignifiedquire
8c0e319e94 feat: new channels
- add new top level `channels` module (stable) based on `async-channel`
- deprecate `sync::channel`
2020-12-01 15:10:38 +01:00
hhggit
3bb121dc1e reset timer after timeout was ready 2020-11-28 09:07:14 +08:00
Yoshua Wuyts
73035006dc
Merge pull request #910 from taiki-e/pin-project-lite
Update pin-project-lite to 0.2.0
2020-11-22 12:39:01 +01:00
Taiki Endo
42c44045ad Update pin-project-lite to 0.2.0 2020-11-14 05:28:27 +09:00
Yoshua Wuyts
e5191aec8a
Merge pull request #909 from Silvea12/master
Updated docs to correct version + mention tokio03 feature flag
2020-11-06 12:41:46 +01:00
Yoshua Wuyts
a2ea3c7395
Merge pull request #903 from taiki-e/stream-cycle
Fix double drop in StreamExt::cycle
2020-11-05 12:27:50 +01:00