Package: effect
Module: Types
Describes the concurrency level for Effect operations that run multiple effects.
When to use
Use to type options that control how many effects may run at the same time.
Details
number — run at most N effects concurrently."unbounded" — run all effects concurrently with no limit.Example (Setting concurrency values)
import type { Types } from "effect"
const sequential: Types.Concurrency = 1
const limited: Types.Concurrency = 5
const unbounded: Types.Concurrency = "unbounded"
Signature
type Concurrency = number | "unbounded"
Since v2.0.0