You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 058347d
Browse filesBrowse the repository at this point in the historyBrowse files
this commit introduces an `hyper::rt::Executor` implementation,
`HandleExecutor`. this executor is used to run tasks on a tokio runtime,
but spawns tasks onto a particular runtime using a provided
`tokio::runtime::Handle` rather than by calling `tokio::spawn()`
this is useful for situations in which you wish to run tasks on a
*separate* runtime, for example. this may be applicable to those
configuring hyper clients and servers in applications running on NUMA
(Non-Uniform Memory Awareneses) systems, or those that wish to manage
provision separate resources for background tasks. see the
[`tokio::runtime`] documentation for more information about choosing the
correct runtime for an application.
a unit test is included which demonstrates that `HandleExecutor` can be
used to spawn background tasks onto a separate tokio runtime.
[`tokio::runtime`]: https://docs.rs/tokio/latest/tokio/runtime/index.html#numa-awareness
Signed-off-by: katelyn martin <git@katelyn.world>
0 commit comments