effect-tea-persistent
    Preparing search index...

    Type Alias Creation<Reason>

    Creation:
        | Readonly<{ _tag: "Created" }>
        | Readonly<{ _tag: "AlreadyExists" }>
        | Readonly<{ _tag: "Rejected"; reason: Reason | null }>

    What creating an entity is answered. Only Created is stored, under its sender and the request id. Rejected is the program's init's, and is not stored: the entity does not exist, and a caller's retry runs init again, as a message's NotFound is not stored (decision 0182). An operation's is kept for its work, so a run after a crash is given it again (decision 0253).

    Type Parameters

    • Reason = never

    Type Declaration

    • Readonly<{ _tag: "Created" }>
    • Readonly<{ _tag: "AlreadyExists" }>
    • Readonly<{ _tag: "Rejected"; reason: Reason | null }>

      reason is null for a bare reject.