[#BloombergLP-bslx-TestInStream-setInputLimit]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/TestInStream.adoc[TestInStream]::setInputLimit
:relfileprefix: ../../../
:mrdocs:

Set the number of input operations allowed on this stream to the specified `limit` before an exception is thrown&period; If `limit` is less than 0, no exception is to be thrown&period; By default, no exception is scheduled&period;

== Synopsis

Declared in `&lt;bslx&lowbar;testinstream&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setInputLimit(int limit);
----


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