[#BloombergLP-bdlmt-Throttle-requestPermission-0da] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/Throttle.adoc[Throttle]::requestPermission :relfileprefix: ../../../ :mrdocs: `requestPermission` overloads == Synopses Declared in `<bdlmt_throttle.h>` Return whether taking one action would not exceed this throttle's limit. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdlmt/Throttle/requestPermission-0db.adoc[requestPermission](); ---- [.small]#xref:BloombergLP/bdlmt/Throttle/requestPermission-0db.adoc[_» more..._]# Return whether taking `numActions` would not exceed this throttle's limit. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdlmt/Throttle/requestPermission-07.adoc[requestPermission](int numActions); ---- [.small]#xref:BloombergLP/bdlmt/Throttle/requestPermission-07.adoc[_» more..._]# Return whether taking one action at `now` would not exceed the limit. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdlmt/Throttle/requestPermission-0a.adoc[requestPermission](xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& now); ---- [.small]#xref:BloombergLP/bdlmt/Throttle/requestPermission-0a.adoc[_» more..._]# Return whether taking `numActions` at `now` would not exceed the limit. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdlmt/Throttle/requestPermission-0b.adoc[requestPermission]( int numActions, xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& now); ---- [.small]#xref:BloombergLP/bdlmt/Throttle/requestPermission-0b.adoc[_» more..._]# == Return Value `true` if permission is granted, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *numActions* | number of actions requested | *now* | current time on this throttle's configured clock |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#