Blocks the current thread until the result becomes available and returns it.
(self)
| 57 | self.thread = thread |
| 58 | |
| 59 | def wait(self): |
| 60 | """Blocks the current thread until the result becomes available and returns it.""" |
| 61 | self.thread.join() |
| 62 | return self.buf[0] |
| 63 | |
| 64 | |
| 65 | class FeatureStorage(object): |