Trait winrt::RtAsyncOperation
source · pub trait RtAsyncOperation: RtAsyncAction {
type TResult;
fn get_results(&self) -> Result<Self::TResult>;
fn blocking_get(&self) -> Result<Self::TResult> { ... }
}
Expand description
Extension for IAsyncOperation
with helper methods.
Required Associated Types§
Required Methods§
fn get_results(&self) -> Result<Self::TResult>
Provided Methods§
sourcefn blocking_get(&self) -> Result<Self::TResult>
fn blocking_get(&self) -> Result<Self::TResult>
Waits for the asynchronous operation to complete, blocking the current thread, then return the result.