From 422337fd1e1a22792d4419ac74faf4e8d4e6d9d3 Mon Sep 17 00:00:00 2001 From: William Myers Date: Sun, 7 Jun 2020 20:44:01 -0600 Subject: [PATCH] Add docs about into_read being blocking Addresses #151 --- src/types/upload.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types/upload.rs b/src/types/upload.rs index a57d306d..ab3bda2f 100644 --- a/src/types/upload.rs +++ b/src/types/upload.rs @@ -55,7 +55,9 @@ impl Upload { self.0.content_type.as_deref() } - /// Convert to a read + /// Convert to a `Read`. + /// + /// **Note**: this is a *synchronous/blocking* reader. pub fn into_read(self) -> impl Read + Sync + Send + 'static { self.0.content }