INNER CODE UNIT · Rust
is_alive
xuzhougeng/wisp-science · crates/wisp-acp/src/lib.rs:287
pub fn is_alive(&self) -> bool {
!self.command_tx.is_closed()
}
pub fn stderr(&self) -> String {
self.stderr.snapshot()
}
pub async fn next_event(&self) -> Option<AcpSessionEvent> {
self.event_rx.lock().await.recv().await
}
pub async fn authenticate(&self, method_id: impl Into<String>) -> Result<(), AcpError> {
self.request(|reply| Command::Authenticate(method_id.into(), reply))
.await
}
pub async fn new_session(