Alan Somers and GitHub
127983e5b4
tests: update Nix to 0.22.0 ( #3951 )
2021-07-11 09:53:04 +02:00
ty and GitHub
c306bf853a
net: allow customized I/O operations for TcpStream ( #3888 )
2021-07-08 13:02:40 +02:00
Moritz Gunz and GitHub
c6fbb9aeb1
task: expose nameable future for TaskLocal::scope ( #3273 )
2021-07-08 12:54:31 +02:00
Alice Ryhl and GitHub
5d61c997e9
chore: prepare tokio-stream 0.1.7 ( #3923 )
tokio-stream-0.1.7
2021-07-07 10:58:51 +02:00
Alice Ryhl and GitHub
c505a2f81a
chore: prepare tokio-macros 1.3.0 ( #3931 )
tokio-macros-1.3.0
2021-07-07 10:58:02 +02:00
Alice Ryhl and GitHub
e2589a0e40
runtime: add OwnedTasks ( #3909 )
2021-07-07 10:53:57 +02:00
Alice Ryhl and GitHub
51fad066e2
bench: update spawn benchmarks ( #3927 )
2021-07-07 10:52:53 +02:00
Alice Ryhl
ae233c1e9f
Merge branch 'upstream/merge-1.8.1' into 'master'
2021-07-07 10:22:13 +02:00
Alice Ryhl and GitHub
be26ca7625
sync: wrap state in helper struct ( #3922 )
2021-07-07 10:17:47 +02:00
Carl Lerche
2d41f0303e
Merge branch 'tokio-1.8.x' into merge-1.8.1
2021-07-06 16:20:57 -07:00
Carl Lerche
e0c527f383
chore: prepare Tokio v1.8.1 release
tokio-1.8.1
2021-07-06 15:37:17 -07:00
Carl Lerche
1160e8864c
Merge branch 'tokio-1.7.x' into merge-1.7.2
2021-07-06 15:36:24 -07:00
Carl Lerche
998a125717
chore: prepare Tokio 1.7.2 release
tokio-1.7.2
2021-07-06 14:35:36 -07:00
Carl Lerche
cbfdc9d69e
Merge branch 'tokio-1.6.x' into merge-1.6.3
2021-07-06 14:34:34 -07:00
Carl Lerche
08337c5f79
chore: prepare Tokio v1.6.3
tokio-1.6.3
2021-07-06 13:45:47 -07:00
Carl Lerche
87f4969fbc
Merge branch 'tokio-1.5.x' into merge-1.5.x
2021-07-06 13:44:11 -07:00
Alice Ryhl and GitHub
e385108920
rt: remotely abort tasks on JoinHandle::abort ( #3934 )
tokio-1.5.1
2021-07-06 13:41:25 -07:00
Blas Rodriguez Irizar and GitHub
4818c2ed05
fs: document performance considerations ( #3920 )
2021-07-06 16:25:13 +02:00
Blas Rodriguez Irizar and GitHub
80f0801e19
tokio-macros: compat with clippy::unwrap_used ( #3926 )
2021-07-06 15:01:13 +02:00
David CARLIER and GitHub
8148b2107c
net: make ucred return pid field for OpenBSD ( #3919 )
2021-07-06 11:15:15 +02:00
oiovoyo and GitHub
2e7de1ae1d
stream: modify HashMap to StreamMap in example. ( #3925 )
2021-07-05 16:10:55 +02:00
Alice Ryhl and GitHub
37e60fc7f9
chore: fix new clippy complaint ( #3915 )
2021-07-05 09:58:49 +02:00
Alice Ryhl and GitHub
8170e2787c
sync: fix watch wrapper ( #3914 )
2021-07-02 23:24:02 +02:00
Alice Ryhl and GitHub
677107d8d9
chore: prepare Tokio v1.8.0 ( #3912 )
tokio-1.8.0
2021-07-02 22:21:10 +02:00
Alice Ryhl and GitHub
c8ecfc894d
sync: fix watch borrow_and_update ( #3913 )
2021-07-02 10:14:34 -07:00
Taiki Endo and GitHub
08ed41f339
chore: fix typos ( #3907 )
2021-07-01 02:06:56 +09:00
Alice Ryhl and GitHub
90e1935c48
test: test with tracing ( #3906 )
2021-06-30 09:40:10 -07:00
Alice Ryhl and GitHub
b877629cb1
net: handle HUP event with UnixStream ( #3898 )
...
Fixes : #3879
2021-06-30 09:39:06 -07:00
Mikhail Zabaluev and GitHub
0531549b6e
io: efficient implementation of vectored writes for BufWriter ( #3163 )
2021-06-29 20:26:47 +02:00
Alice Ryhl and GitHub
38204f5fba
time: fix Timeout size_hint ( #3902 )
2021-06-29 20:06:10 +02:00
Jacob Rothstein and GitHub
8fa29cb00a
rt: add tokio::task::Builder ( #3881 )
...
Adds a builder API for spawning tasks. Initially, this enables the caller to name the spawned
task in order to provide better visibility into all tasks in the system.
2021-06-29 10:47:30 -07:00
Alice Ryhl and GitHub
b521cc2689
doc: document cancellation safety ( #3900 )
...
This patch documents cancellation safety. It also moves the "Avoid racy if preconditions"
section in the select! documentation since otherwise the first code block on the page
shows how not to use it, which seems counterintuitive.
2021-06-29 10:35:42 -07:00
Jake Shadle and GitHub
57c90c9750
net: add read/try_read etc methods to NamedPipeServer ( #3899 )
2021-06-29 10:05:20 +02:00
Mikail Bagishov and GitHub
d35ff7064f
sync: add drop guard for cancellation token ( #3839 )
2021-06-28 12:34:58 +02:00
Milo and GitHub
ab0791b817
time: add wait alias to sleep ( #3897 )
2021-06-28 10:48:07 +02:00
Jake Shadle and GitHub
959c5c997f
net: add ready/try methods to NamedPipeClient ( #3866 )
2021-06-28 10:43:57 +02:00
sb64 and GitHub
845626410a
sync: implement From<T> for OnceCell<T> ( #3877 )
2021-06-22 15:11:01 +02:00
Carl Lerche
3207479fa7
Merge branch 'tokio-1.7.x' into merge-1.7.1
2021-06-18 16:37:21 -07:00
Carl Lerche and GitHub
7601dc6d2a
rt: avoid early task shutdown ( #3870 )
...
Tokio 1.7.0 introduced a change intended to eagerly shutdown newly
spawned tasks if the runtime is in the process of shutting down.
However, it introduced a bug where already spawned tasks could be
shutdown too early, resulting in the potential introduction of deadlocks
if tasks acquired mutexes in drop handlers.
Fixes #3869
tokio-1.7.1
2021-06-18 16:32:53 -07:00
Alice Ryhl and GitHub
d1aa2df80e
sync: add Receiver::borrow_and_update ( #3813 )
2021-06-16 18:42:05 +02:00
sb64 and GitHub
e979ad7f2d
time: allow users to specify Interval behavior when delayed ( #3721 )
2021-06-16 13:51:27 +02:00
sb64 and GitHub
5ad3dd3378
time: document auto-advancing behavior of runtime ( #3763 )
2021-06-16 13:51:12 +02:00
teor and GitHub
60bd40d529
time: fix typo in Instant::saturating_duration_since docs ( #3864 )
2021-06-16 12:50:30 +02:00
brain0 and GitHub
4a93af4d25
io: add get_{ref,mut} methods to AsyncFdReadyGuard and AsyncFdReadyMutGuard. ( #3807 )
2021-06-16 12:45:05 +02:00
Alice Ryhl and GitHub
34c6a26c01
chore: prepare Tokio v1.7.0 ( #3863 )
tokio-1.7.0
2021-06-15 19:39:33 +02:00
97e7830364
net: provide NamedPipe{Client, Server} types and builders ( #3760 )
...
This builds on https://github.com/tokio-rs/mio/pull/1351 and introduces the
tokio::net::windows::named_pipe module which provides low level types for
building and communicating asynchronously over windows named pipes.
Named pipes require the `net` feature flag to be enabled on Windows.
Co-authored-by: Alice Ryhl <[email protected] >
2021-06-15 08:13:31 +02:00
Carl Lerche
606206ecad
Merge branch 'tokio-1.6.x' into merge-1.6.x
2021-06-14 17:51:30 -07:00
Carl Lerche and GitHub
dfe4013ff2
chore: prepare Tokio 1.6.2 release ( #3859 )
tokio-1.6.2
2021-06-14 17:50:34 -07:00
Carl Lerche and GitHub
18779aa2e2
time: fix time::advance() with sub-ms durations ( #3852 )
...
Instead of using sleep in time::advance, this fixes the root of the issue. When futures passed
to `Runtime::block_on` are woken, it bypassed all the machinery around advancing time. By
intercepting wakes in the time driver, we know when the block_on task is woken and skip
advancing time in that case.
Fixes #3837
2021-06-14 16:36:04 -07:00
Alan Somers and GitHub
2c24a028f6
chore: re-enable test_socket_pair on FreeBSD ( #3844 )
...
It was disabled due to an OS bug that has been fixed on all currently
supported releases of FreeBSD
2021-06-14 13:14:35 -07:00