[#BloombergLP-bslmt-Sluice-timedWait-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/Sluice.adoc[Sluice]::timedWait
:relfileprefix: ../../../
:mrdocs:

Wait for `token` to be signaled, or until `absTime` expires&period;

== Synopses

Declared in `&lt;bslmt&lowbar;sluice&period;h&gt;`

Wait for `token` to be signaled, or until `absTime` expires&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bslmt/Sluice/timedWait-09.adoc[timedWait](
    void const* token,
    xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& absTime);
----

[.small]#xref:BloombergLP/bslmt/Sluice/timedWait-09.adoc[_» more&period;&period;&period;_]#

Wait for `token` to be signaled, or until `absTime` expires&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CLOCK,
    class DURATION&gt;
int
xref:BloombergLP/bslmt/Sluice/timedWait-0f.adoc[timedWait](
    void const* token,
    bsl::chrono::time&lowbar;point&lt;CLOCK, DURATION&gt; const& absTime);
----

[.small]#xref:BloombergLP/bslmt/Sluice/timedWait-0f.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, `e&lowbar;TIMED&lowbar;OUT` on timeout, or another value on error

== Parameters

[cols="1,4"]
|===
| Name| Description
| *token*
| wait token previously returned by `enter`
| *absTime*
| absolute timeout from the construction clock epoch
|===


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