windows_future/join.rs
1use super::*;
2
3impl IAsyncAction {
4 /// Waits for the `IAsyncAction` to finish.
5 pub fn join(&self) -> Result<()> {
6 Async::join(self)
7 }
8}
9
10impl<T: RuntimeType> IAsyncOperation<T> {
11 /// Waits for the `IAsyncOperation<T>` to finish.
12 pub fn join(&self) -> Result<T> {
13 Async::join(self)
14 }
15}
16
17impl<P: RuntimeType> IAsyncActionWithProgress<P> {
18 /// Waits for the `IAsyncActionWithProgress<P>` to finish.
19 pub fn join(&self) -> Result<()> {
20 Async::join(self)
21 }
22}
23
24impl<T: RuntimeType, P: RuntimeType> IAsyncOperationWithProgress<T, P> {
25 /// Waits for the `IAsyncOperationWithProgress<T, P>` to finish.
26 pub fn join(&self) -> Result<T> {
27 Async::join(self)
28 }
29}