3681 Commits

Author SHA1 Message Date
Alice Ryhl
1134cbb168
net: fix flaky doctest for TcpStream::into_std (#6074) 2023-10-14 15:09:07 +00:00
Alice Ryhl
339c78a680
tokio: remove #5973 from changelog (#6073) 2023-10-14 12:24:45 +00:00
Tymoteusz Wiśniewski
c00861210b
chore: move 1.20.x to previous LTS releases (#6069) 2023-10-12 18:18:03 +02:00
Alice Ryhl
0f296d2089
io: allow clear_readiness after io driver shutdown (#6067) 2023-10-12 08:18:22 -07:00
Tymoteusz Wiśniewski
d420d528f9
chore: render taskdump docs in Netlify previews (#6060) 2023-10-09 11:57:36 +02:00
Tymoteusz Wiśniewski
0457690d01
chore: prepare Tokio v1.33.0 release (#6059) tokio-1.33.0 2023-10-09 11:55:17 +02:00
David Yamnitsky
4557451257
io: implement Seek for SyncIoBridge (#6058) 2023-10-07 14:43:35 +02:00
Jack Wrenn
2bd43765d9
rt: do not trace tasks while locking OwnedTasks (#6036) 2023-10-06 21:48:47 +02:00
Dan Kov
f306bd02c3
sync: fix unclosed code block in example (#6056) 2023-10-06 14:33:26 +02:00
Alice Ryhl
6b010ac80f
docs: fix new doc warnings in 1.73.0 (#6055) 2023-10-06 09:49:44 +00:00
Alice Ryhl
8cd3383913
time: reduce iteration count in short_sleeps test (#6052) 2023-10-05 22:03:27 +00:00
Alice Ryhl
d6ed00c292
sync: Semaphore doc final cleanup (#6050) 2023-10-05 12:43:49 +00:00
songmuhan
5d29136a83
docs: add semaphore example for running tests sequentially (#6038)
Signed-off-by: Muhan Song <songmuhan@stu.pku.edu.cn>
2023-10-05 13:48:19 +02:00
Luís Cruz
52b29b33bb
net: add apple tvos support (#6045) 2023-10-04 18:48:53 +02:00
Alice Ryhl
eaba9712e8
sync: document that broadcast capacity is a lower bound (#6042) 2023-10-03 07:58:34 +00:00
Alice Ryhl
310adf7ca6
rt: fix flaky test test_disable_lifo_slot (#6043) 2023-10-02 15:05:48 +02:00
Marek Kuskowski
0700d6a7cd
io: mark Interest::add with #[must_use] (#6037) 2023-09-29 16:43:38 +02:00
Tymoteusz Wiśniewski
ca89c5b2ec
benches: move sender to a spawned task in watch benchmark (#6034) 2023-09-28 11:28:12 +02:00
Uwe Klotz
453c720709
sync: use Acquire/Release instead of SeqCst in watch (#6018) 2023-09-24 18:13:43 +02:00
Uwe Klotz
e76c06ba38
sync: prevent lock poisoning in watch::Receiver::wait_for (#6021) 2023-09-24 17:26:35 +02:00
Alice Ryhl
02aacf5110
sync: make TokenBucket::close into a destructor in example (#6032) 2023-09-24 14:16:14 +02:00
Weijia Jiang
707fb4d0df
tokio: remove wildcard in match patterns (#5970) 2023-09-23 22:05:44 +02:00
Alice Ryhl
b161633b5f
sync: reorder Semaphore examples (#6031) 2023-09-23 19:53:44 +02:00
M.Amin Rayej
f5b8cf9dac
sync: add token bucket example to Semaphore (#5978) 2023-09-23 17:45:30 +02:00
Rebekah Kim
aa36807c02
sync: fix docs typo (#6030) 2023-09-23 12:33:41 +02:00
Alice Ryhl
74c7a87985
Merge 'tokio-1.32.x' into 'master' (#6028) 2023-09-22 20:00:09 +02:00
Alice Ryhl
ccb37c4f39
Merge 'tokio-1.25.2' into 'tokio-1.32.x' (#6027) 2023-09-22 19:58:58 +02:00
Alice Ryhl
9ab4ca68ac chore: prepare Tokio v1.25.2 (#6026) tokio-1.25.2 2023-09-22 18:32:04 +02:00
Alice Ryhl
60a0ca58fa Merge 'tokio-1.20.6' into 'tokio-1.25.x' (#6025) 2023-09-22 18:26:10 +02:00
Alice Ryhl
938c7eb023 chore: prepare Tokio v1.20.6 (#6024) tokio-1.20.6 2023-09-22 13:44:00 +02:00
Alice Ryhl
bfa9ea8d9b io: use memchr from libc (#5960) 2023-09-22 13:40:01 +02:00
Uwe Klotz
9bc782acfc
sync: fix incorrect comment (#6020) 2023-09-21 10:44:27 +02:00
Chris Constantine
3f6165d82e
chore: prepare tokio-util v0.7.9 (#6019) tokio-util-0.7.9 2023-09-20 19:30:12 +02:00
Uwe Klotz
ad7f988da3
sync: fix mark_changed when version overflows (#6017) 2023-09-19 15:44:08 +00:00
nicflower
9d51b76d01
sync: add watch::Sender::new (#5998) 2023-09-19 16:01:36 +02:00
Uwe Klotz
804511822b
sync: rename watch::mark_unseen to watch::mark_changed (#6014) 2023-09-19 13:13:46 +00:00
Alexander Kirilin
e6553c4ee3
sync: add Semaphore example using an Arc<Semaphore> (#5956) 2023-09-19 14:13:19 +02:00
M.Amin Rayej
98bb3be094
ci: fix ci on tokio-1.20.x (#5999) 2023-09-19 00:16:15 +02:00
Hayden Stainsby
d247e7f5df
sync: document that const_new() is not instrumented (#6002) 2023-09-13 13:49:02 +02:00
Victor Timofei
65e7715909
util: replace sync::reusable_box::Pending with std::future::Pending (#6000) 2023-09-12 08:53:05 +09:00
Victor Timofei
61042b4d90
sync: add watch::Receiver::mark_unseen (#5962) 2023-09-11 13:50:29 +02:00
Icenowy Zheng
1c428cc558
tokio: fix cache line size for RISC-V (#5994) 2023-09-11 07:22:14 +00:00
Alexandre Bléron
61f095fdc1
sync: add ?Sized bound to {MutexGuard,OwnedMutexGuard}::map (#5997) 2023-09-10 20:08:12 +02:00
Marek Kuskowski
65027b60bc
io: add Interest::remove method (#5906) 2023-09-10 16:46:07 +02:00
M.Amin Rayej
b046c0dcbb
benches: use criterion instead of bencher (#5981) 2023-09-10 16:42:53 +02:00
Adam Chalmers
737dff40cb
task: rename generic paramter for spawn (#5993) 2023-09-10 11:21:51 +02:00
Weijia Jiang
a6be73eecb
codec: document the line ending used by LinesCodec (#5982) 2023-09-08 15:59:48 +02:00
M.Amin Rayej
9fafe783d3
io: support vectored writes for DuplexStream (#5985) 2023-09-08 12:57:18 +02:00
Joan Antoni RE
fb3ae0a254
docs: fix worker_overflow_count (#5988) 2023-09-07 14:16:52 -05:00
Hayden Stainsby
aad1892ab5
task: fix spawn_local source location (#5984)
The location of a spawned task, as shown in tokio console, is taken from
the location set on the tracing span that instruments the task. For this
location to work, there must be unbroken chain of functions instrumented
with `#[track_caller]`.

For `task::spawn_local`, there was a break in this chain and so the
span contained the location of an internal function in tokio.

This change adds the missing `#[track_caller]` attribute. It has been
tested locally as automated tests would really need `tracing-mock` to be
published so we can use it in the tokio tests.
2023-09-06 10:55:47 +02:00