# fromResult

Converts an Effect Result to Success or a typed Failure Cause.

## Signatures

```ts
export declare const fromResult: <A, E>(result: Result.Result<A, E>) => AsyncData<A, E>;
```

## Why

Result has only typed success/failure, so a failed result becomes `Cause.fail` without inventing defects or interruption.

## Ownership and lifetime

This pure conversion acquires no resources and retains the Result payload.

## Examples

```ts
import { fromResult } from "@typed/async-data"
import { Result } from "effect"
const state = fromResult(Result.succeed(1))
```
