Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
seanses committed Feb 14, 2025
1 parent 7905a9f commit 80f0358
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xet_threadpool/src/threadpool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ impl ThreadPool {
ret
}

/// This function can be safely used by threads inside of tokio to call an async function
/// from a sync function.
pub fn internal_run_async_task<F>(&self, future: F) -> Result<F::Output, MultithreadedRuntimeError>
where
F: std::future::Future + Send + 'static,
Expand Down

0 comments on commit 80f0358

Please sign in to comment.