Created
April 17, 2019 19:27
-
-
Save DoumanAsh/806b9928719ff6b94c170383c4b825bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
impl<F: Send + 'static + Future<Item=I, Error=E>, I: Send + 'static, E: Send + 'static> AutoRuntime for F { | |
#[inline] | |
fn finish(self) -> Result<Self::Item, Self::Error> { | |
block_on(self) | |
} | |
#[inline] | |
fn spawn(self) where Self: 'static + Future<Item=(), Error=()> + Send { | |
spawn(self); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment