MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / take_sender

Method take_sender

crates/openshell-cli/src/oidc_auth.rs:337–342  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

335
336impl CallbackState {
337 fn take_sender(&self) -> Option<oneshot::Sender<String>> {
338 self.tx
339 .lock()
340 .unwrap_or_else(std::sync::PoisonError::into_inner)
341 .take()
342 }
343}
344
345/// Run the ephemeral callback server for the OIDC redirect.

Callers 1

handle_oidc_callbackFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected