---
title: "async(execute:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/nwprotocolframer/instance/async(execute:)"
---

# async(execute:)

Requests that a block be executed on the connection’s internal scheduling context.

## Declaration

```swift
final func async(execute: @escaping () -> Void)
```

## Discussion

Discussion You should call this if you need to call any framer functions but are in another scheduling context.

## See Also

### Handling Asynchronous Events

- [scheduleWakeup(wakeupTime:)](network/nwprotocolframer/instance/schedulewakeup(wakeuptime:).md)
- [NWProtocolFramer.Instance.WakeupTime](network/nwprotocolframer/instance/wakeuptime.md)
