@@ -96,7 +96,7 @@ impl SnapshotBuilder {
9696 }
9797
9898 /// Creates a new instance of the runtime with the provided options and a pre-configured tokio runtime.
99- /// See [`Runtime::new`] for more information.
99+ /// See [`crate:: Runtime::new`] for more information.
100100 ///
101101 /// # Errors
102102 /// Can fail if the deno runtime initialization fails (usually issues with extensions)
@@ -161,7 +161,7 @@ impl SnapshotBuilder {
161161 }
162162
163163 /// Advance the JS event loop by a single tick
164- /// See [`Runtime::await_event_loop`] for fully running the event loop
164+ /// See [`crate:: Runtime::await_event_loop`] for fully running the event loop
165165 ///
166166 /// Returns true if the event loop has pending work, or false if it has completed
167167 ///
@@ -194,7 +194,7 @@ impl SnapshotBuilder {
194194 /// Run the JS event loop to completion, or until a timeout is reached
195195 /// Required when using the `_immediate` variants of functions
196196 ///
197- /// This is the blocking variant of [`Runtime::await_event_loop`]
197+ /// This is the blocking variant of [`crate:: Runtime::await_event_loop`]
198198 ///
199199 /// # Arguments
200200 /// * `options` - Options for the event loop polling, see [`deno_core::PollEventLoopOptions`]
@@ -307,7 +307,7 @@ impl SnapshotBuilder {
307307 ///
308308 /// Note that synchronous functions are run synchronously. Returned promises will be run asynchronously, however.
309309 ///
310- /// See [`Runtime::call_function`] for an example
310+ /// See [`crate:: Runtime::call_function`] for an example
311311 ///
312312 /// # Arguments
313313 /// * `module_context` - Optional handle to a module to search - if None, or if the search fails, the global context is used
@@ -390,7 +390,7 @@ impl SnapshotBuilder {
390390 /// Calls a javascript function within the Deno runtime by its name and deserializes its return value.
391391 /// Will not attempt to resolve promises, or run the event loop
392392 /// Promises can be returned by specifying the return type as [`crate::js_value::Promise`]
393- /// The event loop should be run using [`Runtime::await_event_loop`]
393+ /// The event loop should be run using [`crate:: Runtime::await_event_loop`]
394394 ///
395395 /// # Arguments
396396 /// * `module_context` - Optional handle to a module to search - if None, or if the search fails, the global context is used
@@ -480,7 +480,7 @@ impl SnapshotBuilder {
480480 /// - The event loop is resolved, and
481481 /// - If the value is a promise, the promise is resolved
482482 ///
483- /// See [`Runtime::get_value`] for an example
483+ /// See [`crate:: Runtime::get_value`] for an example
484484 ///
485485 /// # Arguments
486486 /// * `module_context` - Optional handle to a module to search - if None, or if the search fails, the global context is used
@@ -508,7 +508,7 @@ impl SnapshotBuilder {
508508 /// Get a value from a runtime instance
509509 /// Will not attempt to resolve promises, or run the event loop
510510 /// Promises can be returned by specifying the return type as [`crate::js_value::Promise`]
511- /// The event loop should be run using [`Runtime::await_event_loop`]
511+ /// The event loop should be run using [`crate:: Runtime::await_event_loop`]
512512 ///
513513 /// # Arguments
514514 /// * `module_context` - Optional handle to a module to search - if None, or if the search fails, the global context is used
@@ -550,7 +550,7 @@ impl SnapshotBuilder {
550550 /// And call functions
551551 ///
552552 /// Blocks until the module has been executed AND the event loop has fully resolved
553- /// See [`Runtime::load_module_async`] for a non-blocking variant, or use with async
553+ /// See [`crate:: Runtime::load_module_async`] for a non-blocking variant, or use with async
554554 /// background tasks
555555 ///
556556 /// # Arguments
@@ -590,7 +590,7 @@ impl SnapshotBuilder {
590590 /// And call functions
591591 ///
592592 /// Returns a future that resolves to the handle for the loaded module
593- /// Makes no attempt to fully resolve the event loop - call [`Runtime::await_event_loop`]
593+ /// Makes no attempt to fully resolve the event loop - call [`crate:: Runtime::await_event_loop`]
594594 /// to resolve background tasks and async listeners
595595 ///
596596 /// # Arguments
@@ -603,7 +603,7 @@ impl SnapshotBuilder {
603603 /// # Errors
604604 /// Can fail if the module cannot be loaded, or execution fails
605605 ///
606- /// See [`Runtime::load_module`] for an example
606+ /// See [`crate:: Runtime::load_module`] for an example
607607 pub async fn load_module_async ( & mut self , module : & Module ) -> Result < ModuleHandle , Error > {
608608 self . inner . load_modules ( None , vec ! [ module] ) . await
609609 }
@@ -612,7 +612,7 @@ impl SnapshotBuilder {
612612 /// And call functions.
613613 ///
614614 /// Blocks until all modules have been executed AND the event loop has fully resolved
615- /// See [`Runtime::load_module_async`] for a non-blocking variant, or use with async
615+ /// See [`crate:: Runtime::load_module_async`] for a non-blocking variant, or use with async
616616 /// background tasks
617617 ///
618618 /// This will load 'module' as the main module, and the others as side-modules.
@@ -660,13 +660,13 @@ impl SnapshotBuilder {
660660 /// And call functions.
661661 ///
662662 /// Returns a future that resolves to the handle for the loaded module
663- /// Makes no attempt to resolve the event loop - call [`Runtime::await_event_loop`] to
663+ /// Makes no attempt to resolve the event loop - call [`crate:: Runtime::await_event_loop`] to
664664 /// resolve background tasks and async listeners
665665 ///
666666 /// This will load 'module' as the main module, and the others as side-modules.
667667 /// Only one main module can be loaded per runtime
668668 ///
669- /// See [`Runtime::load_modules`] for an example
669+ /// See [`crate:: Runtime::load_modules`] for an example
670670 ///
671671 /// # Arguments
672672 /// * `module` - A `Module` object containing the module's filename and contents.
0 commit comments