BloombergLP::bdlmt::Throttle::requestPermission

Return whether taking numActions would not exceed this throttle's limit.

Synopsis

Declared in <bdlmt_throttle.h>

bool
requestPermission(int numActions);

Return Value

true if permission is granted, and false otherwise

Parameters

NameDescription
numActionsnumber of actions requested