2700 Commits

Author SHA1 Message Date
Alice Ryhl
aa03622cf3
chore: prepare tokio-util 0.6.9 (#4199) tokio-util-0.6.9 2021-10-29 18:34:23 +02:00
Alice Ryhl
ac89d8926d
chore: prepare Tokio v1.13.0 (#4196) tokio-1.13.0 2021-10-29 18:34:13 +02:00
Alice Ryhl
e184205421
chore: prepare tokio-macros 1.6.0 (#4197) tokio-macros-1.5.1 2021-10-29 18:33:40 +02:00
sander2
44a1aad8df
task: allocate callback on heap immediately in debug mode (#4203) 2021-10-29 17:34:25 +02:00
Alice Ryhl
75c07770bf
sync: make watch::send_replace infallible (#4195) 2021-10-27 14:05:25 +02:00
Colin Walters
268ed5e73e
task: add more tips + links to spawn_blocking docs (#4150) 2021-10-26 20:57:57 +02:00
Bhargav
0c68b89452
codec: update stream impl for Framed to return None after Err (#4166) 2021-10-26 16:56:15 +02:00
Alice Ryhl
827694a9e3
ci: fix nightly version for cirrus ci (#4200) 2021-10-26 16:53:05 +02:00
Alice Ryhl
d15e5fad16
ci: split FreeBSD into two jobs (#4194) 2021-10-26 15:44:00 +02:00
Alice Ryhl
9cb495cdb8
tokio: upgrade to new nightly for CI (#4193) 2021-10-26 14:08:11 +02:00
Ibraheem Ahmed
e7d3e0c93c
macros: use qualified syntax when polling in select! (#4192) 2021-10-25 23:54:34 +09:00
Alice Ryhl
e04b5be1f5
time: update deadline on removal in DelayQueue (#4178) 2021-10-22 20:34:36 +02:00
Colin Walters
2734fa9a85
util/io: add SyncIoBridge (#4146) 2021-10-22 18:46:29 +02:00
Alice Ryhl
83aeae8610
chore: fix output of macro after new rustc release (#4189) 2021-10-22 09:36:12 +02:00
Taiki Endo
cf550b2183
ci: ignore RUSTSEC-2020-0159 in audit (#4186) 2021-10-21 10:27:26 +02:00
Colin Walters
e1c8b5a159
tests: add #[cfg(sync)] to watch test (#4183) 2021-10-21 09:11:14 +02:00
Jared Stanbrough
eb7a615c96
tokio: add riscv32 to non atomic64 architectures (#4185) 2021-10-21 04:25:00 +09:00
John-John Tedro
44e9013f64
tokio: assert platform-minimum requirements at build time (#3797) 2021-10-19 15:16:45 +02:00
antogilbert
03969cdae7
doc: conversion of doc comments to indicative mood (#4174)
Co-authored-by: Antonello Palazzi <antonello.palazzi@gmail.com>
2021-10-19 10:54:16 +02:00
Taiki Endo
095012b03b
macros: fix type resolution error in #[tokio::main] (#4176) 2021-10-19 12:49:57 +09:00
Jonathan
b5c1fb4012
signal: add example with background listener (#4171) 2021-10-17 20:37:15 +02:00
Philip Dubé
d4848a9e2e
examples: replace time crate with httpdate (#4169) 2021-10-15 15:21:08 +02:00
Alice Ryhl
bb6a292d0a
chore: prepare tokio-macros v1.5.0 (#4167) tokio-macros-1.5.0 2021-10-13 15:51:09 +02:00
Suika
eb2106f87e
runtime: reset woken of outer future after polled (#4157) 2021-10-12 13:35:14 +02:00
Lukas Wirth
fadd0190da
macros: make tokio-macros attributes more IDE friendly (#4162) 2021-10-11 22:04:47 +02:00
Alice Ryhl
f0cb360d70
sync: add more oneshot examples (#4153) 2021-10-08 08:52:50 +02:00
Alice Ryhl
d047584e86
time: document Interval::tick cancel safety (#4152) 2021-10-05 15:55:15 +02:00
Alice Ryhl
c5d37204dc
chore: fix unused field warnings (#4151) 2021-10-05 13:21:38 +02:00
我就像屎的倒影
7f26ad85c2
fmt: ignore the target dir when formatting (#4145)
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2021-10-04 08:36:17 +02:00
Alice Ryhl
d39c9ed9dc
chore: prepare tokio-macros 1.4.1 (#4142)
This reverts commit 33f0a1fd2e5dd2c9f8bc3066fda38911828d26f5.
tokio-macros-1.4.1
2021-09-30 10:38:52 +02:00
Noah Kennedy
44cfe10ee5
chore: prepare tokio-macros 1.4.0 (#4139) tokio-macros-1.4.0 2021-09-29 23:30:47 +02:00
Frank Steffahn
1073f6e8be
sync: expand Debug for Mutex<T> impl to unsized T (#4134) 2021-09-26 12:29:08 +02:00
Kai Jewson
dee3236c97
sync: add watch::Sender::send_replace (#3962) 2021-09-25 22:06:40 +02:00
Noah Kennedy
d9ca1517c6
net: add try_*, readable, writable, ready, and peer_addr methods to split halves (#4120) 2021-09-25 20:19:29 +02:00
你好-肚财
6c1a1d9b07
docs: add returning on the first error example for try_join! (#4133) 2021-09-25 16:04:38 +02:00
Arthur Gautier
d32acd97eb
net: add poll_{recv,send}_ready methods to udp and uds_datagram (#4131) 2021-09-24 20:28:18 +02:00
João Marcos Bezerra
7875f26586
docs: fixing broken links in tokio/src/lib.rs (#4132) 2021-09-24 11:16:30 +02:00
我就像屎的倒影
7ce8f05cff
sync: add blocking_lock to Mutex (#4130) 2021-09-23 11:46:14 +02:00
Sean McArthur
ea19606bc4
sync: fix Notify to clone the waker before locking its waiter list (#4129)
Since a waker can trigger arbitrary code, such as with a custom waker,
and even more so now that it can emit a tracing event that could do
respond, we must be careful about the internal state when that code is
triggered. The clone method of a waker is one of those instances.

This changes the internals of `Notify` so that the waker is cloned
*before* locking the waiter list. While this does mean that in some
contended cases, we'll have made an optimistic clone, it makes `Notify`
more robust and correct.

Note that the included test case is built from an instance that did
happen naturally in another project, see
https://github.com/tokio-rs/console/issues/133.
2021-09-23 08:33:14 +02:00
Zahari Dichev
b9b59e4f15
tracing: use structured location fields for spawned tasks (#4128)
This change enables `tokio-console` to parse the location information
for a spawned task into a structured object rather than simply displaying
this info as a field on the task.

Signed-off-by: Zahari Dichev <zaharidichev@gmail.com>
2021-09-22 23:17:41 +03:00
Suika
cdc46a9ded
io: add assert in copy_bidirectional that poll_write is sensible (#4125) 2021-09-22 10:06:51 +02:00
Zahari Dichev
b9834f6d8b
tracing: instrument time::Sleep (#4072)
This branch instruments the `Sleep` resource to allow the tokio-console
to consume data about resources usage. The corresponding console branch
is here: https://github.com/tokio-rs/console/pull/77

Signed-off-by: Zahari Dichev <zaharidichev@gmail.com>
2021-09-22 08:34:41 +03:00
Alice Ryhl
1ed89aa5cf
chore: prepare Tokio v1.12.0 (#4123) tokio-1.12.0 2021-09-21 17:15:22 +02:00
Andrew Hlynskyi
d9b2dc81ca
task: improve JoinHandle::abort cancellation doc (#4121) 2021-09-21 10:20:03 +02:00
Alice Ryhl
8e54145c8b
ci: make loom tests optional (#4112) 2021-09-20 21:52:35 +02:00
Alice Ryhl
279e8b001a
sync: document spurious failures on poll_recv (#4117) 2021-09-19 09:52:40 +02:00
Alan Briolat
e9f6faee67
mpsc: ensure try_reserve error is consistent with try_send (#4119) 2021-09-19 09:52:28 +02:00
Alice Ryhl
f1b89675eb
mpsc: use spin_loop_hint instead of yield_now (#4115) 2021-09-18 09:27:25 +02:00
Alice Ryhl
ddd33f2b05
sync: implement try_recv for mpsc channels (#4113) 2021-09-18 09:27:16 +02:00
Alan Somers
8e92f05795
io: update the mio-aio dev-dependency (#4116) 2021-09-18 09:25:52 +02:00