pub async fn spawn_adapter(
client: impl Client + 'static,
launcher: &AdapterLauncher,
cwd: &Path,
) -> Result<AdapterProcess>Expand description
Spawn the ACP adapter as a child process and establish the connection.
launcher should be resolved once at startup and reused.
Must be called from within a tokio::task::LocalSet context because
ACP futures are !Send.