Skip to content

Commit

Permalink
chore(neon): Fix doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvalencik committed Sep 20, 2024
1 parent 2083aed commit 1af433d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/neon/src/executor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub trait Runtime: Send + Sync + 'static {
/// to initialize the async runtime once in a process global and share it across instances.
///
/// ```
/// # fn main() {
/// # #[cfg(feature = "tokio-rt-multi-thread")]
/// # fn example() {
/// # use neon::prelude::*;
Expand All @@ -44,6 +45,7 @@ pub trait Runtime: Send + Sync + 'static {
/// Ok(())
/// }
/// # }
/// # }
/// ```
pub fn set_global_executor<R>(cx: &mut Cx, runtime: R) -> Result<(), R>
where
Expand Down

0 comments on commit 1af433d

Please sign in to comment.