pub fn ready<T>(t: T) -> Ready<T> {
    assert_future::<T, _>(Ready(Some(t)))
}
Creates a future that is immediately ready with a value.

# Examples

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

let a = future::ready(1);
assert_eq!(a.await, 1);
# });
```
futures-util/src/future/ready.rs