3.json (8613B)
1 { 2 "number": 3, 3 "title": "Bump tokio from 0.2.11 to 0.2.12", 4 "state": "merged", 5 "diff_file": "3.diff", 6 "author": "dependabot-preview[bot]", 7 "created_at": "2020-02-28T05:07:04Z", 8 "closed_at": "2020-02-28T09:10:49Z", 9 "merged_at": "2020-02-28T09:10:49Z", 10 "base_ref": "master", 11 "head_ref": "dependabot/cargo/tokio-0.2.12", 12 "labels": [ 13 "dependencies" 14 ], 15 "assignees": [ 16 "MTRNord" 17 ], 18 "requested_reviewers": [], 19 "body": "Bumps [tokio](https://github.com/tokio-rs/tokio) from 0.2.11 to 0.2.12.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/tokio-rs/tokio/releases\">tokio's releases</a>.</em></p>\n<blockquote>\n<h2>Tokio v0.2.12</h2>\n<p>Polish, small additions, and fixes. The biggest additions in this release are <code>StreamMap</code> and <code>Notify</code>.</p>\n<h2><code>StreamMap</code></h2>\n<p>Similar to <code>StreamExt::merge</code>, <code>StreamMap</code> supports merging multiple source streams into a single stream, producing items as they become available in the source streams. However, <code>StreamMap</code> supports inserting and removing streams at run-time. This is useful for cases where a consumer wishes to subscribe to messages from multiple sources and dynamically manage those subscriptions.</p>\n<p>As the name implies, <code>StreamMap</code> maps keys to streams. Streams are [inserted] or [removed] as needed and then the <code>StreamMap</code> is used as any other stream. Items are returned with their keys, enabling the caller to identify <strong>which</strong> source stream the item originated from.</p>\n<h3>Example</h3>\n<pre lang=\"rust\"><code>use tokio::stream::{StreamExt, StreamMap};\nuse tokio::sync::mpsc;\n<p>#[tokio::main]\nasync fn main() {\nlet (mut tx1, rx1) = mpsc::channel(10);\nlet (mut tx2, rx2) = mpsc::channel(10);\n// use <code>Sender</code> handles</p>\n<pre><code>let mut map = StreamMap::new();\n\n// Insert both streams\nmap.insert(&quot;one&quot;, rx1);\nmap.insert(&quot;two&quot;, rx2);\n\n// Read twice\nfor _ in 0..2 {\n let (key, val) = map.next().await.unwrap();\n\n println!(&quot;got {} from {}&quot;, val, key);\n\n // Remove the stream to prevent reading the next value\n map.remove(key);\n}\n</code></pre>\n<p>}\n</code></pre></p>\n<h2><code>Notify</code></h2>\n<p><code>Notify</code> is the next step in providing <code>async / await</code> based synchronization primitives. It is similar to how <code>thread::park() / unpark()</code> work, but for asynchronous tasks. Consumers await notifications and producers notify consumers. <code>Notify</code> is intended to be used as a building block for higher level synchronization primitives, such as channels.</p>\n<h3>Examples</h3>\n<p>Basic usage.</p>\n<pre lang=\"rust\"><code>use tokio::sync::Notify;\nuse std::sync::Arc;\n</tr></table> ... (truncated)\n</code></pre>\n</blockquote>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/tokio-rs/tokio/commit/c6fc1db6981733c8bfe90d979132b00cfc03b83b\"><code>c6fc1db</code></a> chore: prepare v0.2.12 release (<a href=\"https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2278\">#2278</a>)</li>\n<li><a href=\"https://github.com/tokio-rs/tokio/commit/d44ce338af6ef3cf666f5b3db6e8e0bf057e5490\"><code>d44ce33</code></a> tcp: Update listener docs (<a href=\"https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2276\">#2276</a>)</li>\n<li><a href=\"https://github.com/tokio-rs/tokio/commit/8b7ea0ff5cad2522d3113b77e9b6d95b507dee3b\"><code>8b7ea0f</code></a> sync: adds Notify for basic task notification (<a href=\"https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2210\">#2210</a>)</li>\n<li><a href=\"https://github.com/tokio-rs/tokio/commit/7207bf355e2b6418bb0d757859a5cdcdedf32530\"><code>7207bf3</code></a> time: avoid needing to <code>poll</code> DelayQueue after insertion (<a href=\"https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2217\">#2217</a>)</li>\n<li><a href=\"https://github.com/tokio-rs/tokio/commit/a4c4ac254b36c5b78038d416e3b78912df293f8f\"><code>a4c4ac2</code></a> docs: macros doc(cfg) workarounds (<a href=\"https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2225\">#2225</a>)</li>\n<li><a href=\"https://github.com/tokio-rs/tokio/commit/0589acc9ffb9175647d6b7a794edd8812f79399f\"><code>0589acc</code></a> Implement Stream for Listener types (<a href=\"https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2275\">#2275</a>)</li>\n<li><a href=\"https://github.com/tokio-rs/tokio/commit/1dadc701c04879f1df4ddaa0df362297a144d7b3\"><code>1dadc70</code></a> macros: add assignment form to pin! (<a href=\"https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2274\">#2274</a>)</li>\n<li><a href=\"https://github.com/tokio-rs/tokio/commit/10f1507cf44b62f4b126ecdd28351e4a4a1ce3f7\"><code>10f1507</code></a> process: Wake up read and write on <code>EPOLLERR</code> (<a href=\"https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2218\">#2218</a>)</li>\n<li><a href=\"https://github.com/tokio-rs/tokio/commit/b9cc032d3bcf7686f0130163c13d3d660d30ae2c\"><code>b9cc032</code></a> mpsc: add <code>Sender::send_timeout</code> (<a href=\"https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2227\">#2227</a>)</li>\n<li><a href=\"https://github.com/tokio-rs/tokio/commit/4213b794611d706beb0ad244a1ad03086bb8a94d\"><code>4213b79</code></a> tokio: fix broken contributing guide link (<a href=\"https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2267\">#2267</a>)</li>\n<li>Additional commits viewable in <a href=\"https://github.com/tokio-rs/tokio/compare/tokio-0.2.11...tokio-0.2.12\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[](https://dependabot.com/compatibility-score/?dependency-name=tokio&package-manager=cargo&previous-version=0.2.11&new-version=0.2.12)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language\n- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language\n- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language\n- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language\n- `@dependabot badge me` will comment on this PR with code to add a \"Dependabot enabled\" badge to your readme\n\nAdditionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):\n- Update frequency (including time of day and day of week)\n- Pull request limits (per update run and/or open at any time)\n- Out-of-range updates (receive only lockfile updates, if desired)\n- Security updates (receive only security updates, if desired)\n\n\n\n</details>", 20 "comments": [], 21 "review_comments": [] 22 }