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

# Type Alias: ResultMaybeAsync\<T, E>

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

A result that may be either synchronous or asynchronous.

## Type Parameters

### T

`T`

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

### E

`E`

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

## Examples

**Synchronous Case**

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

const result: Result.ResultMaybeAsync<number, string> = { type: 'Success', value: 10 };
```

**Asynchronous Case**

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

const result: Result.ResultMaybeAsync<number, string> = Promise.resolve({ type: 'Failure', error: 'error' });
```
