15 lines
338 B
Rust
15 lines
338 B
Rust
pub use foxtrot::{io, net, time};
|
|
|
|
pub mod sync {
|
|
pub use jitterbug::{oneshot, Dropped as OneshotError, Receiver, Sender};
|
|
}
|
|
|
|
pub mod runtime;
|
|
pub mod task;
|
|
|
|
pub use task::{spawn, spawn_blocking};
|
|
|
|
pub fn block_on<T>(future: impl std::future::Future<Output = T> + Send + 'static) -> T {
|
|
runtime::Runtime::new().block_on(future)
|
|
}
|