Return True if the future is done. Done means either that a result / exception are available, or that the future was cancelled.
(self)
| 179 | # Don't implement running(); see http://bugs.python.org/issue18699 |
| 180 | |
| 181 | def done(self): |
| 182 | """Return True if the future is done. |
| 183 | |
| 184 | Done means either that a result / exception are available, or that the |
| 185 | future was cancelled. |
| 186 | """ |
| 187 | return self._state != _PENDING |
| 188 | |
| 189 | def result(self): |
| 190 | """Return the result this future represents. |
no outgoing calls
no test coverage detected