---
title: "init(_:)"
framework: observation
role: symbol
role_heading: Initializer
path: "observation/observations/init(_:)"
---

# init(_:)

Constructs an asynchronous sequence for a given closure by tracking changes of @Observable types.

## Declaration

```swift
init(_ emit: @escaping @isolated(any) @Sendable () throws(Failure) -> Element)
```

## Parameters

- `emit`: A closure to generate an element for the sequence.

## Discussion

Discussion The emit closure is responsible for extracting a value out of a single or many @Observable types.
