@asyncflowstate/angular provides Observable/BehaviorSubject-based factory functions for the AsyncFlowState engine.
Core factory for managing a single async action. Returns a state$ BehaviorSubject.
import { createFlow } from "@asyncflowstate/angular";
const flow = createFlow(async (id: string) => api.fetchUser(id), {
retry: { maxAttempts: 3, backoff: "exponential" },
});
// In template with async pipe:
// <ng-container *ngIf="flow.state$ | async as state">
// <button [disabled]="state.loading">{{ state.loading ? 'Loading...' : 'Go' }}</button>
// </ng-container>Factory for sequential workflows. Returns state$ Observable.
Factory for parallel execution. Returns state$ Observable.
Factory for multiple keyed flow instances. Returns state$ Observable.
Factory for paginated data fetching. Returns state$ Observable.
import type {
AngularFlowOptions,
FlowSignalState,
AngularInfiniteFlowOptions,
} from "@asyncflowstate/angular";