[#BloombergLP-bslmt-ThreadUtil-sleepUntil-0b1]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::sleepUntil
:relfileprefix: ../../../
:mrdocs:

Suspend the current thread until the specified absolute time point&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CLOCK,
    class DURATION&gt;
static
void
sleepUntil(bsl::chrono::time&lowbar;point&lt;CLOCK, DURATION&gt; const& absoluteTime);
----

== Description

Suspend execution of the current thread until the specified `absoluteTime`, which is an _absolute_ time represented as an interval from some epoch, determined by the clock associated with the time point&period; The behavior is undefined unless `absoluteTime` represents a time after January 1, 1970 and before the end of December 31, 9999&period; Note that the actual time suspended depends on many factors including system scheduling and system timer resolution&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *absoluteTime*
| absolute time point at which to resume
|===


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