melib: add async blocking join

pull/234/head
Manos Pitsidianakis 6 years ago
parent 47481e72da
commit eda76c744e
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -125,4 +125,8 @@ impl<T> Async<T> {
self.value = Some(v);
Ok(AsyncStatus::Finished)
}
/// Blocks until thread joins.
pub fn join(mut self) -> T {
self.worker.take().unwrap().join().unwrap()
}
}

Loading…
Cancel
Save