Message304111
| Author |
pfreixes |
| Recipients |
pfreixes, yselivanov |
| Date |
2017年10月11日.07:36:55 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1507707415.81.0.213398074469.issue30457@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
You are right, having the `pop` after the `set` it would remove the key from the events. Despite the workaround that you proposes is quite clean, it is kinda implicit.
The nature of the `pending` method is to give to the developer a way to check how many waiters are still pending. This not only helps to make this code more explicit also other pieces of code that might need access to the length of the waiters. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年10月11日 07:36:55 | pfreixes | set | recipients:
+ pfreixes, yselivanov |
| 2017年10月11日 07:36:55 | pfreixes | set | messageid: <1507707415.81.0.213398074469.issue30457@psf.upfronthosting.co.za> |
| 2017年10月11日 07:36:55 | pfreixes | link | issue30457 messages |
| 2017年10月11日 07:36:55 | pfreixes | create |
|