MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / client_runtime_block_on

Function client_runtime_block_on

claw-code/rust/crates/api/src/client.rs:461–468  ·  view source on GitHub ↗
(future: F)

Source from the content-addressed store, hash-verified

459}
460
461fn client_runtime_block_on<F, T>(future: F) -> Result<T, ApiError>
462where
463 F: std::future::Future<Output = Result<T, ApiError>>,
464{
465 tokio::runtime::Runtime::new()
466 .map_err(ApiError::from)?
467 .block_on(future)
468}
469
470fn load_saved_oauth_token() -> Result<Option<OAuthTokenSet>, ApiError> {
471 let token_set = load_oauth_credentials().map_err(ApiError::from)?;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected