# loading

Creates a loading state with optional progress.

## Signatures

```ts
export declare const loading: (progress?: Progress) => Loading;
```

## Why

The constructor keeps state creation consistent with the discriminated union.

## Ownership and lifetime

This pure function acquires no resources and returns a new wrapper.

## Examples

```ts
import { loading } from "@typed/async-data"
const state = loading({ loaded: 2, total: 5 })
```
