MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / clone_for_blocking

Method clone_for_blocking

src/lib.rs:1147–1149  ·  view source on GitHub ↗

Cheap clone that shares all `Arc`-wrapped state with the original. Used by LSP handlers (hover, definition, references, etc.) to move blocking sync work onto a `spawn_blocking` thread while keeping the async runtime free to process cancellations and other requests.

(&self)

Source from the content-addressed store, hash-verified

1145 /// blocking sync work onto a `spawn_blocking` thread while keeping
1146 /// the async runtime free to process cancellations and other requests.
1147 pub(crate) fn clone_for_blocking(&self) -> Self {
1148 self.clone_for_diagnostic_worker()
1149 }
1150
1151 /// Return the current project configuration.
1152 ///

Callers 11

goto_definitionMethod · 0.80
goto_implementationMethod · 0.80
goto_type_definitionMethod · 0.80
hoverMethod · 0.80
referencesMethod · 0.80
code_actionMethod · 0.80
signature_helpMethod · 0.80
document_highlightMethod · 0.80
prepare_renameMethod · 0.80
renameMethod · 0.80
subtypesMethod · 0.80

Calls 1

Tested by

no test coverage detected