[#BloombergLP-bdlmt-Throttle-requestPermission-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/Throttle.adoc[Throttle]::requestPermission
:relfileprefix: ../../../
:mrdocs:

Return whether taking `numActions` at `now` would not exceed the limit&period;

== Synopsis

Declared in `&lt;bdlmt&lowbar;throttle&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
requestPermission(
    int numActions,
    xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& now);
----

== 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&apos;s configured clock
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
