use super::*; impl IAsyncAction { /// Calls `op(result)` when the `IAsyncAction` completes. pub fn when(&self, op: F) -> Result<()> where F: FnOnce(Result<()>) + Send + 'static, { Async::when(self, op) } } impl IAsyncOperation { /// Calls `op(result)` when the `IAsyncOperation` completes. pub fn when(&self, op: F) -> Result<()> where F: FnOnce(Result) + Send + 'static, { Async::when(self, op) } } impl IAsyncActionWithProgress

{ /// Calls `op(result)` when the `IAsyncActionWithProgress

` completes. pub fn when(&self, op: F) -> Result<()> where F: FnOnce(Result<()>) + Send + 'static, { Async::when(self, op) } } impl IAsyncOperationWithProgress { /// Calls `op(result)` when the `IAsyncOperationWithProgress` completes. pub fn when(&self, op: F) -> Result<()> where F: FnOnce(Result) + Send + 'static, { Async::when(self, op) } }