[#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. If `limit` is less than 0, no exception is to be thrown. By default, no exception is scheduled. == Synopsis Declared in `<bslx_testinstream.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setInputLimit(int limit); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#