[#BloombergLP-bdlcc-Queue-timedPopBack]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Queue.adoc[Queue]::timedPopBack
:relfileprefix: ../../../
:mrdocs:

Remove the last item into `buffer`, waiting until `timeout` if empty&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;queue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
timedPopBack(
    TYPE* buffer,
    xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& timeout);
----

== Description

Remove the last item in this queue and load that item value into the specified `buffer`&period; If this queue is empty, block until an item is available or until the specified `timeout` (expressed as the *ABSOLUTE* time from 00&colon;00&colon;00 UTC, January 1, 1970) expires&period; Return 0 on success, and a non&hyphen;zero value if the call timed out before an item was available&period;

== Return Value

0 on success, and a non&hyphen;zero value if the call timed out

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buffer*
| receives the removed item
| *timeout*
| absolute time at which to stop waiting
|===


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