---
title: "init(_:)"
framework: combine
role: symbol
role_heading: Initializer
path: "combine/anypublisher/init(_:)"
---

# init(_:)

Creates a type-erasing publisher to wrap the provided publisher.

## Declaration

```swift
init<P>(_ publisher: P) where Output == P.Output, Failure == P.Failure, P : Publisher
```

## Parameters

- `publisher`: A publisher to wrap with a type-eraser.
