[#BloombergLP-bdlmt-Throttle-requestPermissionIfValid-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/Throttle.adoc[Throttle]::requestPermissionIfValid :relfileprefix: ../../../ :mrdocs: Load whether taking `numActions` at `now` would not exceed the limit. == Synopsis Declared in `<bdlmt_throttle.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int requestPermissionIfValid( bool* result, int numActions, xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& now); ---- == Return Value 0 if the arguments are valid, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *result* | destination for whether permission is granted | *numActions* | number of actions requested | *now* | current time on this throttle's configured clock |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#