---
title: "init(_:)"
framework: Accessory Transport Extension
role: symbol
role_heading: Initializer
platforms: [iOS 27.3+]
path: "accessorytransportextension/accessorygpuworker/init(_:)"
---

# init(_:)

Initializes a GPU worker feature with a handler factory.

## Declaration

```swift
init(_ handlerFactory: @escaping @Sendable () -> any AccessoryFeatureSessionHandler<AccessoryGPUWorker.Session>)
```

## Parameters

- `handlerFactory`: A closure that creates the handler for each session of the feature.

## Discussion

Discussion Create the instance inside your data provider extension’s extensionPoint. The system calls the closure to create a new handler for each session. For more information, see Sending data to an accessory in the background.
