> For AI agents: the complete documentation index is available at /byethrow/ja/llms.txt, the full documentation bundle is available at /byethrow/ja/llms-full.txt.

# Type Alias: ResultAsync\<T, E>

> **ResultAsync**\<`T`, `E`> = `Promise`\<[`Result`](/byethrow/ja/api/types/Result.Result.md)\<`T`, `E`>>

An asynchronous variant of [Result](/byethrow/ja/api/types/Result.Result.md), wrapped in a `Promise`.

## Type Parameters

### T

`T`

The type of the [Success](/byethrow/ja/api/types/Result.Success.md) value.

### E

`E`

The type of the [Failure](/byethrow/ja/api/types/Result.Failure.md) value.

## Example

```ts
import { Result } from '@praha/byethrow';

const fetchData = async (): Result.ResultAsync<string, Error> => {
  try {
    const data = await fetch('...');
    return { type: 'Success', value: await data.text() };
  } catch (err) {
    return { type: 'Failure', error: err as Error };
  }
};
```
