[#BloombergLP-bdlmt-Throttle-requestPermissionIfValid-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/Throttle.adoc[Throttle]::requestPermissionIfValid :relfileprefix: ../../../ :mrdocs: `requestPermissionIfValid` overloads == Synopses Declared in `<bdlmt_throttle.h>` Load whether taking `numActions` would not exceed this throttle's limit. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlmt/Throttle/requestPermissionIfValid-0b.adoc[requestPermissionIfValid]( bool* result, int numActions); ---- [.small]#xref:BloombergLP/bdlmt/Throttle/requestPermissionIfValid-0b.adoc[_» more..._]# Load whether taking `numActions` at `now` would not exceed the limit. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlmt/Throttle/requestPermissionIfValid-03.adoc[requestPermissionIfValid]( bool* result, int numActions, xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& now); ---- [.small]#xref:BloombergLP/bdlmt/Throttle/requestPermissionIfValid-03.adoc[_» more..._]# == 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]#