docs: add some docs about TaskExecutor (#16327)

This commit is contained in:
Matthias Seitz
2025-05-18 19:02:43 +02:00
committed by GitHub
parent 916ada90c9
commit 27bcf647df
2 changed files with 9 additions and 2 deletions

View File

@@ -98,7 +98,10 @@ pub trait FullNodeComponents: FullNodeTypes + Clone + 'static {
/// Returns the provider of the node.
fn provider(&self) -> &Self::Provider;
/// Returns handle to runtime.
/// Returns an executor handle to spawn tasks.
///
/// This can be used to spawn critical, blocking tasks or register tasks that should be
/// terminated gracefully. See also [`TaskSpawner`](reth_tasks::TaskSpawner).
fn task_executor(&self) -> &TaskExecutor;
}