diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-04-26 15:08:09 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-04-26 15:08:09 -0400 |
commit | 12c4a5eb07f346083a59bc7d18567b2df3ed94ee (patch) | |
tree | 638017b057b81d34935048d1b4c4bb7472614d88 /libdimension-python/dimension.pyx | |
parent | 0acff566213fdddbc8f4561887aced121f82dc26 (diff) | |
download | dimension-12c4a5eb07f346083a59bc7d18567b2df3ed94ee.tar.xz |
future: Add a dmnsn_future_is_done() function.
Diffstat (limited to 'libdimension-python/dimension.pyx')
-rw-r--r-- | libdimension-python/dimension.pyx | 3 |
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() |