[#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 `&lt;bdlmt&lowbar;throttle&period;h&gt;`

Return whether taking one action would not exceed this throttle&apos;s limit&period;


[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&period;&period;&period;_]#

Return whether taking `numActions` would not exceed this throttle&apos;s limit&period;


[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&period;&period;&period;_]#

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


[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&period;&period;&period;_]#

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


[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&period;&period;&period;_]#

== 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]#
