<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "EndpointSecurity",
  "identifier" : "/documentation/EndpointSecurity/es_set_deadline_max_milliseconds(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Endpoint Security"
    ],
    "preciseIdentifier" : "c:@F@es_set_deadline_max_milliseconds"
  },
  "title" : "es_set_deadline_max_milliseconds(_:_:_:_:)"
}
-->

# es_set_deadline_max_milliseconds(_:_:_:_:)

Set the maximum deadline in milliseconds for specified auth event types for this client

```
func es_set_deadline_max_milliseconds(_ client: OpaquePointer, _ events: UnsafePointer<es_event_type_t>, _ event_count: UInt32, _ milliseconds: UInt32) -> es_return_t
```

## Parameters

`client`

The client to configure

`events`

Array of event types to configure deadlines for

`event_count`

Number of events in the events array

## Return Value

ES_RETURN_SUCCESS on success, ES_RETURN_ERROR on failure or if milliseconds exceeds system default

## Discussion

This allows clients to configure lower per-event-type deadlines so that operations don’t block for too long
if the client fails to respond. The kernel will automatically unblock operations based on the
client’s deadline miss mode when the deadline expires.

\note If a deadline minimum has been set (see es_set_deadline_min_milliseconds) and the new maximum
would be lower than the current minimum, the minimum is adjusted down to match.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)