- MongoDB C Driver 1.9.3-dev »
- API Reference »
- mongoc_write_concern_t

# mongoc_write_concern_get_wtimeout()

## 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.

Created using Sphinx 1.6.6, based on Sphinx Readable Theme.