---
title: "delayCurrentPacket(_:)"
framework: networkextension
role: symbol
role_heading: Instance Method
path: "networkextension/nefilterpacketprovider/delaycurrentpacket(_:)"
---

# delayCurrentPacket(_:)

Delay a packet currently processed by a packet handler.

## Declaration

```swift
func delayCurrentPacket(_ context: NEFilterPacketContext) -> NEPacket
```

## Parameters

- `context`: A context for the packet handler.

## Discussion

Discussion This function is only valid within the packetHandler Swift closure or ObjectiveC block, which must return NEFilterPacketProvider.Verdict.delay after delaying the packet. The framework prevents further delivery of the packet through the network stack until it’s allowed or dropped. Allow the packet by calling allow(_:), or drop it by releasing it.

## See Also

### Delaying packets

- [allow(_:)](networkextension/nefilterpacketprovider/allow(_:).md)
