2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-04-26 18:26:48 +00:00
Commit graph

1038 commits

Author SHA1 Message Date
Çağatay Yiğit Şahin
3a26fb32dc doc: update docs to fit the move of channels from the sync module
fixes #983
2021-08-30 17:51:40 +03:00
Dan Gohman
871d2220b8 Fix stdin.rs comments to say "read" instead of "write".
This just fixes a few comments that appear to have been copied and
pasted from stdout.rs.
2021-07-13 17:51:50 -07:00
Friedel Ziegelmayer
b24fe10b11
Merge pull request #957 from Keruspe/write
io: export write::*
2021-06-09 20:53:14 +02:00
Yoshua Wuyts
35f7681664
Merge pull request #965 from rkarp/fix-write-fmt-future
Fix WriteFmtFuture not taking into account already written bytes (#964)
2021-04-02 13:12:35 +02:00
Erick Tryzelaar
c4e181cfe1 Change Incoming impls to only do one allocation
This modifies net::tcp::Incoming and os::net::unix::Incoming to only do
one allocation, rather than an allocation for each connection.
2021-03-31 11:27:50 -07:00
Rolf Karp
5bc34cb6ba Fix WriteFmtFuture not taking into account already written bytes (#964) 2021-03-13 23:34:33 +01:00
Marc-Antoine Perennou
fe310f6b1c io: export write::*
We weren't exporting WriteExt.
We already do that with read::*

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2021-02-16 22:14:10 +01:00
Martin Glagla
7fecd0d710 add task::try_current 2021-02-02 19:25:28 +01: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
Lucas Riutzel
e11a7ecf36
Fix typo in DoubleEndedStream docs 2021-01-24 21:18:14 +00: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
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
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
dignifiedquire
8c5238743b remove deprecated sync::channel 2021-01-13 11:20:29 +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
Taiki Endo
ffd46f75ca Replace deprecated compare_and_swap with compare_exchange 2020-12-31 18:49:53 +09:00
surechen
47b22fff56 edit Small typo for Stream 2020-12-30 17:14:18 +08:00
Wesley Merkel
01949b505b Fix link in typo in src/task/mod.rs 2020-12-11 14:05:05 -06: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
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
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
Andrew Silver
7d20a4435c
Fixed updated docs to match the 80 column style the rest of the docs use 2020-11-05 08:15:34 +11:00
Andrew Silver
738fd46618
Updated docs to correct version + mention tokio03 feature flag, updated CHANGELOG.md to add diff for 1.6.5...1.7.0 2020-11-05 08:12:38 +11:00
Taiki Endo
e8dc2c0571 Fix double drop in StreamExt::cycle 2020-11-02 07:10:18 +09:00
dignifiedquire
0d50906a80 chore: release v1.6.5 2020-09-28 19:11:21 +02:00
Stjepan Glavina
f7aa962daf Store a future inside Incoming 2020-09-28 18:58:45 +02:00
Marc-Antoine Perennou
3e94498741 fix tokio compatibility
Move it into async-global-executor

Fixes #881

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-09-22 17:13:39 +02:00
Friedel Ziegelmayer
55fb871ab8
chore: release v1.6.4
Co-authored-by: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
2020-09-17 13:20:57 +02:00
Marc-Antoine Perennou
352c54bfe6
feat: move executor to async-global-executo 2020-09-15 19:04:12 +02:00
Friedel Ziegelmayer
e9cb238f49
fix wasm and nostd builds
Co-authored-by: Jacob Rothstein <hi@jbr.me>
2020-09-14 21:31:19 +02:00
Friedel Ziegelmayer
6a6623cfad
Merge pull request #869 from jimblandy/buf-writer-doc-fix
Fix BufWriter documentation: BufWriters do not flush when dropped.
2020-09-14 14:46:43 +02:00
Friedel Ziegelmayer
a9580a9f76
Merge pull request #872 from TaKO8Ki/fix-clippy-warnings 2020-09-14 14:45:40 +02:00
Friedel Ziegelmayer
f7319591a3
Merge pull request #866 from Keruspe/smol04 2020-09-14 14:45:03 +02:00
Takayuki Maeda
04bb83f86e fix clippy warnings 2020-09-02 17:37:28 +09:00
Marc-Antoine Perennou
e2f638496c don't init runtime threadpool unless necessary
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-08-31 21:43:21 +02:00
Jim Blandy
949ff90306 Fix BufWriter documentation: BufWriters do not flush when dropped.
This was partially fixed in #586, but there's another sentence later that makes
the same claim.
2020-08-30 12:20:00 -07:00
Yoshua Wuyts
bd297473cc
Merge pull request #856 from yshui/master
Fix #855
2020-08-28 16:00:09 +02:00
Yoshua Wuyts
1319def758
Merge pull request #853 from r3v2d0g/udp-peek
Add peek{,from} methods to UdpSocket
2020-08-28 15:59:59 +02:00