(&self)
| 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; |
no test coverage detected