summaryrefslogtreecommitdiffstats
path: root/libdimension-python/dimension.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension-python/dimension.pyx')
-rw-r--r--libdimension-python/dimension.pyx3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx
index 7b6619f..98fc41d 100644
--- a/libdimension-python/dimension.pyx
+++ b/libdimension-python/dimension.pyx
@@ -85,6 +85,9 @@ cdef class Future:
def progress(self):
self._assert_unfinished()
return dmnsn_future_progress(self._future)
+ def is_done(self):
+ self._assert_unfinished()
+ return dmnsn_future_is_done(self._future)
def wait(self, double progress):
self._assert_unfinished()