blob: e055b2f97f5a4e204688e0a1cace32cd175f1afa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# nng_msleep
## NAME
nng_msleep --- sleep milliseconds
## SYNOPSIS
```c
#include <nng/nng.h>
typedef int64_t nng_duration;
void nng_msleep(nng_duration msec);
```
## DESCRIPTION
The {{i:`nng_msleep`}}{{hi:sleep}} blocks the caller for at least _msec_ milliseconds.
> [!NOTE]
> This function may block for longer than requested.
> The actual wait time is determined by the capabilities of the
> underlying system.
## SEE ALSO
[nng_sleep_aio][nng_sleep_aio],
[nng_clock][nng_clock]
[nng_clock]: ../util/nng_clock.md
[nng_sleep_aio]: ../aio/nng_sleep_aio.md
|