MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / ensure_started

Method ensure_started

packages/server/src/webkit.rs:152–159  ·  view source on GitHub ↗
(self: Arc<Self>)

Source from the content-addressed store, hash-verified

150 }
151
152 fn ensure_started(self: Arc<Self>) {
153 if self.running.swap(true, Ordering::AcqRel) {
154 return;
155 }
156 tokio::spawn(async move {
157 self.run().await;
158 });
159 }
160
161 async fn discovery(&self, http_origin: Option<&str>) -> WebKitTargetDiscovery {
162 let state = self.state.read().await.clone();

Callers 1

discover_targetsFunction · 0.45

Calls 1

runMethod · 0.45

Tested by

no test coverage detected