Indicates if a consumption request has been scheduled :type token: RequestToken :param token: The token associated to the consumption request that is used to identify the request.
(self, token)
| 309 | self._total_wait = 0 |
| 310 | |
| 311 | def is_scheduled(self, token): |
| 312 | """Indicates if a consumption request has been scheduled |
| 313 | |
| 314 | :type token: RequestToken |
| 315 | :param token: The token associated to the consumption |
| 316 | request that is used to identify the request. |
| 317 | """ |
| 318 | return token in self._tokens_to_scheduled_consumption |
| 319 | |
| 320 | def schedule_consumption(self, amt, token, time_to_consume): |
| 321 | """Schedules a wait time to be able to consume an amount |
no outgoing calls