mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: declarative builder v2 (#6447)
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
This commit is contained in:
@ -298,6 +298,12 @@ impl TaskExecutor {
|
||||
&self.on_shutdown
|
||||
}
|
||||
|
||||
/// Runs a future to completion on this Handle's associated Runtime.
|
||||
#[track_caller]
|
||||
pub fn block_on<F: Future>(&self, future: F) -> F::Output {
|
||||
self.handle.block_on(future)
|
||||
}
|
||||
|
||||
/// Spawns a future on the tokio runtime depending on the [TaskKind]
|
||||
fn spawn_on_rt<F>(&self, fut: F, task_kind: TaskKind) -> JoinHandle<()>
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user