Commit Graph
362 Commits
Author SHA1 Message Date
Evan Cameron 8c980ea75a io: add write_all_vectored to tokio-util (#7768) 2026-02-27 11:16:43 +01:00
cui 96f64f4ee2 codec: fix is_readable should be buffer empty or not (#7912) 2026-02-16 17:33:35 +01:00
Tim Vilgot Mikael Fredenberg 9dacb1c53e tokio: replace some futures with poll_fn (#7895) 2026-02-09 13:30:31 +01:00
Alex H 8167f87137 task: add AbortOnDrop (#7855) 2026-02-09 13:23:46 +01:00
Mattia Pitossi 159f70bc55 ci: fix ambiguity issue during tokio releases (#7848) 2026-02-09 11:04:59 +01:00
Mattia Pitossi 8fd44d9bdc docs: fix link to tokio::select! (#7867) 2026-01-20 23:05:01 +02:00
Mattia PitossiandMartin Grigorov bf185b61ff docs: fix broken links of select! (#7860)
Co-authored-by: Martin Grigorov <[email protected]>
2026-01-17 10:10:59 -08:00
Mattia Pitossi 27d1383581 deps: bump tokio to 1.47.0 (#7862) 2026-01-17 10:06:00 -08:00
Alice Ryhl 9cc02cc88d chore: prepare tokio-util 0.7.18 (#7829) 2026-01-04 13:53:14 +01:00
Qi 064181f386 io: add tokio_util::io::simplex (#7565)
Signed-off-by: ADD-SP <[email protected]>
2025-12-18 20:35:01 +08:00
Owen GriffithsandQi 0ec0a85461 io: document the default capacity of the ReaderStream (#7147)
Signed-off-by: ADD-SP <[email protected]>
Co-authored-by: Qi <[email protected]>
2025-12-12 23:22:17 +08:00
Mattia Pitossi ab3996a6dd time: update outdated docs of Wheel (#7749) 2025-11-29 18:06:33 +08:00
Mattia Pitossi 5e3ad02fb1 sync: fix a typo in the docs of PollSender::is_closed (#7737) 2025-11-15 18:43:02 +08:00
Qi 12412afea4 deps: bump tokio to 1.44.0 (#7733) 2025-11-13 11:47:34 +02:00
Benjamin RanandBenjamin Ran d84a9e9af3 util: enable loom tests (#7644)
Co-authored-by: Benjamin Ran <[email protected]>
2025-11-06 19:20:08 +08:00
Qi 1ece2f1fa7 task: remove unnecessary trait bounds on the Debug implementation (#7720)
Remove the trait bounds of the `Debug` impl for `JoinQueue`
and `AbortOnDropHandle`.

Signed-off-by: ADD-SP <[email protected]>
2025-11-04 11:15:29 +01:00
Qi 454fd8c347 chore: prepare tokio-util v0.7.17 (#7719)
Signed-off-by: ADD-SP <[email protected]>
2025-11-02 15:33:25 +01:00
Conrad Ludgate 4421022c25 codec: remove unnecessary trait bounds on all Framed constructors (#7716) 2025-10-29 20:08:13 +08:00
Qi b8318fa172 task: add tests for spawn_local in panic scenarios (#7694)
Signed-off-by: ADD-SP <[email protected]>
2025-10-20 20:25:00 +08:00
FrancescoV1985 5dacc2e2a8 task: add tests for spawn_local and spawn_local_on (#7609)
Add tests for task collections (TaskTracker, JoinSet, JoinMap).
2025-10-16 23:44:57 +08:00
Mattia Pitossi c1fa25f300 task: clarify the behavior of several spawn_local methods (#7669) 2025-10-12 10:46:23 +08:00
Alice Ryhl 5b4cbbc39e tokio: raise MSRV to 1.71 (#7658) 2025-10-02 11:14:17 +02:00
Tudyx d0953e833d task: simplify the example of TaskTracker (#7657) 2025-10-02 15:07:28 +08:00
Alice Ryhl 95edd8515e docs: fix some docs links (#7654) 2025-09-30 12:35:46 +00:00
Lucas Black 8ccf2fb92e ci: unfreeze wasm tests from rustc 1.88.0 (#7537) 2025-09-26 21:29:01 +08:00
Nikolai Kuklin bce76c515f task: add try_join_next and try_join_next_with_id on JoinQueue (#7636) 2025-09-25 20:31:31 +08:00
Nikolai Kuklin 1b98d5ad85 task: add tokio_util::task::JoinQueue (#7590) 2025-09-20 15:38:59 +08:00
Martin Grigorov 86de2e306b util: fix pending_only_on_first_poll_with_cancellation_token_owned_test to use an owned cancellation token (#7613)
The name of the test suggests that it should test the
with_cancellation_token_owned() extension method
2025-09-15 16:22:42 +09:00
Martin Grigorov 7a0ca807be time: add #[track_caller] to FutureExt::timeout (#7588)
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
2025-09-11 09:18:40 +02:00
Martin Grigorov de978c47e0 task: remove duplicated code in JoinMap::remove_by_id (#7603) 2025-09-10 22:16:15 +08:00
Varun Doshi c8371d45bc codec: add {FramedRead,FramedWrite}::into_parts() (#7566) 2025-09-03 13:38:51 +02:00
Daniel Sharifi adc3e19ba7 time: clarify the cancellation safety of the DelayQueue (#7564) 2025-08-31 20:57:17 +08:00
Qi 11d7c0486a task: inline the docs of TaskTracker while re-exporting it (#7516)
Signed-off-by: ADD-SP <[email protected]>
2025-08-08 09:54:25 +02:00
Luca Bruno ef5b6af7f6 future: clarify the fairness of FutureExt for cancellation adapters (#7512)
This fixes the docstrings on `FutureExt` so that the bias and fairness
notes are correct and consistent in all cases.
All cancellation-related wrappers are biased towards the completion of
the inner future, but they do initially check if the token is
already cancelled at construction time.
2025-08-04 21:26:11 +08:00
Conrad Ludgate f1d3b065b6 task: fix flaky joinmap test during abort (#7509) 2025-08-03 20:00:33 +02:00
Alice Ryhl cf6b50a3fd chore: prepare tokio-util v0.7.16 (#7507) 2025-08-03 11:12:41 +02:00
Conrad Ludgate 416e36b0df task: stabilise JoinMap (#7075) 2025-08-03 07:58:28 +00:00
Lucas Black 4e3f17bce3 codec: also apply capacity to read buffer in Framed::with_capacity (#7500) 2025-08-01 21:26:33 +02:00
Lucas Black 1bc50825f3 codec: add FramedWrite::with_capacity (#7493) 2025-08-01 11:23:22 +02:00
yanyuxing 0e5c5d64f5 future: add adapters of CancellationToken for FutureExt (#7475) 2025-07-29 18:09:13 +08:00
Conrad Ludgate 9e94fa7e15 task: remove raw-entry feature from hashbrown dep (#7252) 2025-07-22 15:52:54 +02:00
Stepan TubanovandLuca BRUNO 6d868d96ce sync: fix CancellationToken failing to cancel the ready futures (#7462)
This patch fixes an issue where the `CancellationToken::run_until_cancelled` never cancels the `Future` that returns `Ready` at the first `poll`.

---------

Co-authored-by: Luca BRUNO <[email protected]>
2025-07-20 10:03:29 +08:00
Aaron Chen a7896d07f1 chore: update CI to clippy 1.88 (#7452) 2025-07-09 08:34:24 +02:00
shangchenglumetro a1ee3ef218 chore: fix some minor typos in the comments (#7442)
Signed-off-by: shangchenglumetro <[email protected]>
2025-07-04 11:29:27 +02:00
QiandAlice Ryhl b3a14483bf sync: improve docs of tokio_util::sync::CancellationToken (#7408)
Co-authored-by: Alice Ryhl <[email protected]>
2025-06-19 06:32:41 +08:00
yanyuxing b926700065 sync: add DropGuardRef for CancellationToken (#7407) 2025-06-18 10:25:41 +02:00
Geoffry Song 912b862a05 task: add AbortOnDropHandle::detach (#7400) 2025-06-10 09:35:48 +02:00
Suryakant Soni a0af02a396 compat: add more documentation to tokio_util::compat (#7279) 2025-04-28 16:20:47 +02:00
Alice Ryhl 4d4d12613b chore: prepare tokio-util v0.7.15 (#7283) 2025-04-23 13:13:48 +02:00
Conrad Ludgate c3037adac9 task: properly handle removed entries in JoinMap (#7264) 2025-04-15 16:33:20 +02:00