Wait till the next query can be sent. Applicable in both single-thread and multi-thread environments.
(self)
| 151 | return english_count + chinese_count |
| 152 | |
| 153 | def wait(self): |
| 154 | """Wait till the next query can be sent. |
| 155 | |
| 156 | Applicable in both single-thread and multi-thread environments. |
| 157 | """ |
| 158 | return self.token_bucket.get_token() |
| 159 | |
| 160 | def to(self, device): |
| 161 | pass |
no test coverage detected