---
name: "mongoc_write_concern_get_wtimeout"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_write_concern_get_wtimeout"
---

# mongoc\_write\_concern\_get\_wtimeout(3)

## SYNOPSIS

```
int32_t
mongoc_write_concern_get_wtimeout (const mongoc_write_concern_t *write_concern);
```

## PARAMETERS

- •

  **write\_concern**: A *mongoc\_write\_concern\_t*.

## DESCRIPTION

Get the timeout in milliseconds that the server should wait before returning with a write concern timeout.

A value of 0 indicates no write timeout.

## RETURNS

Returns an 32-bit signed integer containing the timeout.

**SEE ALSO:**

```
mongoc_write_concern_set_wtimeout() and mongoc_write_concern_get_wtimeout_int64().
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
