Message154631
| Author |
jjdominguezm |
| Recipients |
bquinlan, jjdominguezm, pitrou |
| Date |
2012年02月29日.14:06:04 |
| SpamBayes Score |
0.0016188002 |
| Marked as misclassified |
No |
| Message-id |
<1330524365.27.0.237816290971.issue13785@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The use case is to know the state of a future without having to do something like this
@property
def state(self):
if self.future.running():
return Process.States.Running
elif self.future.cancelled():
return Process.States.Cancelled
elif self.future.done():
return Process.States.Done
return Process.States.Pending |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年02月29日 14:06:05 | jjdominguezm | set | recipients:
+ jjdominguezm, bquinlan, pitrou |
| 2012年02月29日 14:06:05 | jjdominguezm | set | messageid: <1330524365.27.0.237816290971.issue13785@psf.upfronthosting.co.za> |
| 2012年02月29日 14:06:04 | jjdominguezm | link | issue13785 messages |
| 2012年02月29日 14:06:04 | jjdominguezm | create |
|