Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-10-19 | runtime: remove unneeded #[cfg(feature = "rt")] (#2996) | Alice Ryhl | |
2020-10-19 | tokio: add Runtime::spawn_blocking (#2980) | Marc-Antoine Perennou | |
This allows writing rt.spawn_blocking(f); instead of let _enter = rt.enter(); tokio::task::spawn_blocking(f); Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com> | |||
2020-10-19 | docs: fix typo in runtime module documentation (#2992) | nickelc | |
2020-10-19 | util: add a poll_read_buf shim to tokio-util (#2972) | John-John Tedro | |
2020-10-19 | io: add copy_buf (#2884) | Zahari Dichev | |
2020-10-19 | sync: implement Clone for broadcast::Receiver (#2933) | Zephyr Shannon | |
2020-10-17 | docs: fix typos on UdpSocket (#2979) | Evan Cameron | |
2020-10-16 | doc: update version to 0.3 in module documentation (#2974) | messense | |
2020-10-16 | Fix doc typo (#2967) | Alice Ryhl | |
2020-10-16 | Update documentation of AsyncRead to reflect use of ReadBuf | John-John Tedro | |
2020-10-15 | chore: post release Cargo.toml fixes (#2963) | Carl Lerche | |
2020-10-15 | chore: prepare for v0.3.0 release (#2960) | Carl Lerche | |
2020-10-15 | ci: run clippy on MSRV (#2962) | Taiki Endo | |
2020-10-13 | rt: update docs for `0.3` changes (#2956) | Lucio Franco | |
This PR updates the runtime module docs to the changes made in `0.3` release of tokio. Closes #2720 | |||
2020-10-13 | rt: tweak spawn_blocking docs (#2955) | Carl Lerche | |
2020-10-13 | rt: switch `enter` to an RAII guard (#2954) | Carl Lerche | |
2020-10-13 | process: update docs regarding zombie processes (#2952) | Ivan Petkov | |
2020-10-12 | meta: combine `net` and `dns`, use `parking_lot` (#2951) | Carl Lerche | |
This combines the `dns` and `net` feature flags. Previously, `dns` was included as part of `net`. Given that is is rare that one would want `dns` without `net`, DNS is now entirely gated w/ `net`. The `parking_lot` feature is included as part of `full`. Some misc docs are tweaked to reflect feature flag changes. | |||
2020-10-12 | rt: simplify rt-* features (#2949) | Taiki Endo | |
tokio: merge rt-core and rt-util as rt rename rt-threaded to rt-multi-thread tokio-util: rename rt-core to rt Closes #2942 | |||
2020-10-12 | chore: refactor runtime driver usage of `Either` (#2918) | Ivan Petkov | |
2020-10-12 | rt: `worker_threads` must be non-zero (#2947) | Lucio Franco | |
Co-authored-by: Alice Ryhl <alice@ryhl.io> | |||
2020-10-13 | net: merge tcp, udp, uds features to net feature (#2943) | Taiki Endo | |
2020-10-12 | rt: Remove `threaded_scheduler()` and `basic_scheduler()` (#2876) | Lucio Franco | |
Co-authored-by: Alice Ryhl <alice@ryhl.io> Co-authored-by: Carl Lerche <me@carllerche.com> | |||
2020-10-12 | time: move error types into `time::error` (#2938) | Juan Alvarez | |
2020-10-12 | time: Clean up `Instant` docs to align with `std` (#2946) | Lucio Franco | |
Co-authored-by: Alice Ryhl <alice@ryhl.io> | |||
2020-10-12 | io: Rename `ReadBuf` methods (#2945) | Lucio Franco | |
This changes `ReadBuf::add_filled` to `ReadBuf::advance` and `ReadBuf::append` to `ReadBuf::put_slice`. This is just a mechanical change. Closes #2769 | |||
2020-10-12 | sync: change chan `closed(&mut self)` to `closed(&self)` (#2939) | Zahari Dichev | |
2020-10-12 | chore: remove use of doc_alias feature (#2944) | Taiki Endo | |
2020-10-11 | net: make UCred fields private (#2936) | Taiki Endo | |
2020-10-09 | sync: move broadcast error types into broadcast::error module (#2937) | Taiki Endo | |
Refs: #2928 | |||
2020-10-09 | fs: future proof `File` (#2930) | Carl Lerche | |
Changes inherent methods to take `&self` instead of `&mut self`. This brings the API in line with `std`. This patch is implemented by using a `tokio::sync::Mutex` to guard the internal `File` state. This is not an ideal implementation strategy doesn't make a big impact compared to having to dispatch operations to a background thread followed by a blocking syscall. In the future, the implementation can be improved as we explore async file-system APIs provided by the operating-system (iocp / io_uring). Closes #2927 | |||
2020-10-09 | net: switch socket methods to &self (#2934) | Carl Lerche | |
Switches various socket methods from &mut self to &self. This uses the intrusive waker infrastructure to handle multiple waiters. Refs: #2928 | |||
2020-10-09 | io: make Seek and Copy private (#2935) | Taiki Endo | |
Refs: #2928 | |||
2020-10-08 | time: rename `Delay` future to `Sleep` (#2932) | Juan Alvarez | |
2020-10-08 | chore: Fix clippy lints (#2931) | bdonlan | |
Closes: #2929 Co-authored-by: Bryan Donlan <bdonlan@amazon.com> | |||
2020-10-08 | net: use &self with TcpListener::accept (#2919) | Carl Lerche | |
Uses the infrastructure added by #2828 to enable switching `TcpListener::accept` to use `&self`. This also switches `poll_accept` to use `&self`. While doing introduces a hazard, `poll_*` style functions are considered low-level. Most users will use the `async fn` variants which are more misuse-resistant. TcpListener::incoming() is temporarily removed as it has the same problem as `TcpSocket::by_ref()` and will be implemented later. | |||
2020-10-08 | fs: add os::windows::OpenOptionsExt (#2923) | Taiki Endo | |
2020-10-08 | io: remove Poll from the AsyncSeek::start_seek return value (#2885) | Zahari Dichev | |
2020-10-07 | util: fix a typo in sync/cancellation_token.rs (#2922) | Taiki Endo | |
2020-10-07 | net: add `TcpSocket` for configuring a socket (#2920) | Carl Lerche | |
This enables the caller to configure the socket and to explicitly bind the socket before converting it to a `TcpStream` or `TcpListener`. Closes: #2902 | |||
2020-10-08 | fs: switch to our own DirEntryExt trait (#2921) | Taiki Endo | |
2020-10-06 | docs: more docs for UdpSocket (#2883) | Evan Cameron | |
2020-10-06 | time: clean time driver (#2905) | greenwoodcm | |
* remove unnecessary wheel::Poll the timer wheel uses the `wheel::Poll` struct as input when advancing the timer to the next time step. the `Poll` struct contains an instant representing the time step to advance to and also contains an optional and mutable reference to an `Expiration` struct. from what I can tell, the latter field is only used in the context of polling the wheel and does not need to be exposed outside of that method. without the expiration field the `Poll` struct is nothing more than a wrapper around the instant being polled. this change removes the `Poll` struct and updates integration points accordingly. * remove Stack trait in favor of concrete Stack implementation * remove timer Registration struct | |||
2020-10-06 | process: add ProcessDriver to handle orphan reaping (#2907) | Ivan Petkov | |
2020-10-05 | time: move DelayQueue to tokio-util (#2897) | bdonlan | |
This change is intended to do the minimum to unblock 0.3; as such, for now, we duplicate the internal `time::wheel` structures in tokio-util, rather than trying to refactor things at this stage. Co-authored-by: Bryan Donlan <bdonlan@amazon.com> | |||
2020-10-06 | io, stream: assert !Unpin for ext trait futures (#2913) | Taiki Endo | |
2020-10-05 | stream: remove bytes from public API (#2908) | Alice Ryhl | |
2020-10-05 | io, stream: make ext trait futures !Unpin (#2910) | Taiki Endo | |
Make these future `!Unpin` for compatibility with async trait methods. | |||
2020-10-05 | net: implement AsRawSocket on Windows (#2911) | Taiki Endo | |
2020-10-05 | sync: broadcast channel API tweaks (#2898) | Alice Ryhl | |
Removes deprecated APIs and makes some small breaking changes. |