Eliza Weisman and Alice Ryhl
17984a5e1a
Update semaphore.rs
...
Co-authored-by: Alice Ryhl <[email protected] >
2023-11-05 08:52:22 -08:00
Eliza Weisman and Alice Ryhl
970d4b754d
Update semaphore.rs
...
Co-authored-by: Alice Ryhl <[email protected] >
2023-11-05 08:51:32 -08:00
Eliza Weisman and Alice Ryhl
67b171ac77
Update semaphore.rs
...
Co-authored-by: Alice Ryhl <[email protected] >
2023-11-05 08:51:22 -08:00
Eliza Weisman and Alice Ryhl
f7a626ff03
Update semaphore.rs
...
Co-authored-by: Alice Ryhl <[email protected] >
2023-11-05 08:50:39 -08:00
Eliza Weisman
d801664c89
docs: add countdown latch example to Semaphore
...
## Motivation
Some users have requested that `tokio::sync` add a countdown latch
synchronization primitive. This can be implemented using the existing
`Semaphore` API, so rather than adding a countdown latch type, we should
add documentation examples showing how the `Semaphore` can be used as a
countdown latch.
## Solution
This branch adds an example to the `tokio::sync::Semaphore` docs
demonstrating its usage as a countdown latch. This example was extracted
from https://github.com/tokio-rs/tokio/issues/6087#issuecomment-1771452743 .
Closes #6087
2023-10-24 10:09:07 -07:00
Alice Ryhl
58acb56a17
ci: update nightly to 2023-10-21 ( #6103 )
2023-10-24 14:15:25 +00:00
Friedel Ziegelmayer
d22c549d97
deps: update hashbrown to 0.14 ( #6102 )
2023-10-24 12:27:39 +02:00
xianhua zhou and Xianhua Zhou
bc48a6fa8d
sync: fix broadcast::channel link ( #6100 )
...
Co-authored-by: Xianhua Zhou <[email protected] >
2023-10-23 15:40:17 +00:00
Alice Ryhl
70410836ae
task: add tokio_util::sync::TaskTracker ( #6033 )
2023-10-22 14:35:19 +00:00
Aaron Schweiger
881b510a07
sync: add mpsc::Receiver::recv_many ( #6010 )
2023-10-17 11:01:41 +02:00
Rafael Bachmann
6871084629
chore: clippy and doc fixes ( #6081 )
2023-10-16 17:37:51 +02:00
Alice Ryhl
1b8ebfcffb
readme: remove rdbc and add axum to related projects ( #6077 )
2023-10-16 10:25:40 +02:00
Alice Ryhl
654a3d5acf
io: fix integer overflow in take ( #6080 )
2023-10-15 20:54:27 +02:00
Alice Ryhl
a08ad926b1
changelog: fix typo in quadratic ( #6079 )
2023-10-15 20:30:46 +02:00
Alice Ryhl
723934242b
time: reorder comment in sleep.rs ( #6076 )
2023-10-15 19:21:57 +02:00
Alice Ryhl
944f769cd5
chore: remove bin directory ( #6078 )
2023-10-15 19:21:12 +02:00
inkyu
f3ad6cffd9
task: fix missing wakeup when using LocalSet::enter ( #6016 )
2023-10-15 19:18:06 +02:00
Andrea Stedile and Alice Ryhl
f1e41a4ad4
task: add JoinMap::keys ( #6046 )
...
Co-authored-by: Alice Ryhl <[email protected] >
2023-10-15 16:47:41 +02:00
icedrocket
f9335b8186
fs: update cfg attr in fs::read_dir ( #6075 )
2023-10-15 13:50:33 +02:00
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 <[email protected] >
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