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

Method ensure_started_async

packages/server/src/simulators/session.rs:173–178  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

171 }
172
173 pub async fn ensure_started_async(&self) -> Result<(), AppError> {
174 let session = self.clone();
175 task::spawn_blocking(move || session.ensure_started())
176 .await
177 .map_err(|error| AppError::internal(format!("Failed to join start task: {error}")))?
178 }
179
180 pub fn subscribe(&self) -> FrameSubscription {
181 *self.inner.state.lock().unwrap() = SessionState::Streaming;

Callers 4

create_answerFunction · 0.80
refresh_streamFunction · 0.80
handle_control_socketFunction · 0.80
warm_accessibility_cacheFunction · 0.80

Calls 2

cloneMethod · 0.65
ensure_startedMethod · 0.45

Tested by

no test coverage detected