---
title: resume()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsxpclistener/resume()
---

# resume()

Starts processing of incoming requests.

## Declaration

```swift
func resume()
```

## Discussion

Discussion All listeners start suspended and must be resumed before they begin processing incoming requests. If called on the service() object, this method never returns. Therefore, you should call it as the last step inside the XPC service’s main function after setting up any desired initial state and configuring the listener itself. If called on any other NSXPCListener, the connection is resumed, and the method returns immediately.

## See Also

### Managing connection state

- [activate()](foundation/nsxpclistener/activate().md)
- [invalidate()](foundation/nsxpclistener/invalidate().md)
- [suspend()](foundation/nsxpclistener/suspend().md)
