We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bddea95 commit d751c94Copy full SHA for d751c94
src/runtime.rs
@@ -109,11 +109,21 @@ impl Runtime {
109
}
110
111
/// Access the options used to create this runtime
112
+ ///
113
+ /// Warning: Not all options can be accessed in this way
114
+ /// Extensions, for example, are consumed during runtime creation
115
#[must_use]
116
pub fn options(&self) -> &RuntimeOptions {
117
&self.inner.options
118
119
120
+ /// Destroy the v8 runtime, releasing all resources
121
+ /// Then the internal tokio runtime will be returned
122
+ #[must_use]
123
+ pub fn into_tokio_runtime(self) -> Rc<tokio::runtime::Runtime> {
124
+ self.tokio
125
+ }
126
+
127
/// Run the JS event loop to completion
128
/// Required when using the `_immediate` variants of functions
129
///
0 commit comments