fn into_stream(self) -> IntoStream<Self>
    where
        Self: Sized,
    {
        assert_stream::<Self::Output, _>(IntoStream::new(self))
    }
Convert this future into a single element stream.

The returned stream contains single success if this future resolves to
success or single error if this future resolves into error.

# Examples

```
# futures::executor::block_on(async {
use futures::future::FutureExt;
use futures::stream::StreamExt;

let future = async { 17 };
let stream = future.into_stream();
let collected: Vec<_> = stream.collect().await;
assert_eq!(collected, vec![17]);
# });
```
futures-util/src/future/future/mod.rs