pub fn new<T, O>(future: T) -> Self
    where
        T: 'static + future::Future<Output = Result<O, VmError>>,
        O: ToValue,
    {
        Self {
            future: Some(Box::pin(async move {
                let value = future.await?;
                value.to_value()
            })),
        }
    }
/// Construct a new wrapped future.
Construct a new wrapped future.
Construct a new wrapped future .
pub fn new<T, O>(future: T) -> Self
    where
        T: 'static + future::Future<Output = Result<O, VmError>>,
        O: ToValue,
    {
        Self {
            future: Some(Box::pin(async move {
                let value = future.await?;
                value.to_value()
            })),
        }
    }
pub fn new < T , O > ( future : T ) -> Self where T : ' static + future :: Future < Output = Result < O , VmError > > , O : ToValue , { Self { future : Some ( Box :: pin ( async move { let value = future . await ? ; value . to_value ( ) } ) ) , } }
Construct a new wrapped future.
Construct a new wrapped future .
future
T
future
T