Return whether taking numActions at now would not exceed the limit.
Declared in <bdlmt_throttle.h>
bool
requestPermission(
int numActions,
bsls::TimeInterval const& now);
true if permission is granted, and false otherwise
| Name | Description |
|---|---|
| numActions | number of actions requested |
| now | current time on this throttle's configured clock |