in crates/libs/core/src/runtime/stateful_bridge.rs [153:166]
fn BeginOpen(
&self,
callback: windows_core::Ref<super::IFabricAsyncOperationCallback>,
) -> crate::WinResult<super::IFabricAsyncOperationContext> {
let inner = self.inner.clone();
let (ctx, token) = BridgeContext::make(callback);
ctx.spawn(&self.rt, async move {
inner
.open(token)
.await
.map(|s| IFabricStringResult::from(WStringWrap::from(s)))
.map_err(crate::WinError::from)
})
}