implement spawn_with_handle in tokio_executor (#1492)

This code directly relies on `future-preview`'s `RemoteHandle`, and
exposes it via a `spawn_with_handle` method that is identical to
`future-preview`'s implementation.

Related: #1180
This commit is contained in:
Jacob Pratt
2019-08-27 12:26:11 -07:00
committed by Carl Lerche
parent 08e20fcf6a
commit 5f74a99ea3
3 changed files with 45 additions and 2 deletions
+1
View File
@@ -81,3 +81,4 @@ pub use crate::error::SpawnError;
pub use crate::executor::Executor;
pub use crate::global::{spawn, with_default, DefaultExecutor};
pub use crate::typed::TypedExecutor;
pub use futures_util::future::RemoteHandle;