From 1e983a2a8b516918cdf7510a0e067dd024576a57 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Sun, 9 Jun 2019 09:38:10 -0700 Subject: [PATCH] Add a note about AsyncDrop --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 7423d294..ebf5d5b3 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,13 @@ async fn main() -> Result<(), failure::Error> { } ``` +## Notes + + * [`AsyncDrop`](https://internals.rust-lang.org/t/async-await-the-challenges-besides-syntax-cancellation/10287/13) - Many of the + envisoned APIs would greatly benefit from something like this. There are cases where an object _must_ be closed or it would + be a memory leak (in either the client or server). I intended to provide both an `async fn close()` and a sync Drop impl + that blocks the thread and shouts a warning.. but that is obviously not ideal. + ## License Licensed under either of