Add docs about into_read being blocking

Addresses #151
This commit is contained in:
William Myers 2020-06-07 20:44:01 -06:00
parent 80e4eabce4
commit 422337fd1e

View File

@ -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
}