Merge pull request #163 from mwilliammyers/docs/into_read

Add docs about into_read being blocking
This commit is contained in:
Sunli 2020-06-08 10:46:13 +08:00 committed by GitHub
commit 94055fa84e

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
}