namespace / @typed/fx

Subject

Public namespace exposed as Subject from @typed/fx.

Package version
2.0.0-beta.7
Category
namespace

Import

import { Subject } from "@typed/fx";

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

export * as Subject from "./Subject.js";

Members

  • Subject.Service

    Defines an Effect context service that is simultaneously a Subject, Fx, and Sink facade.

  • Subject.Share

    The concrete lazy Fx returned by share.

  • Subject.Subject

    A multicast boundary that is both an Fx of its publications and a Sink that accepts them. Successes and failures are pushed to every subscriber present when that publication begins.

  • Subject.hold

    Shares an Fx and immediately replays its latest success or failure to each new subscriber.

  • Subject.make

    Acquires a Subject whose subscribers and replay state are released with the current Scope.

  • Subject.multicast

    Multicasts an Fx without replaying values that arrived before a subscriber joined.

  • Subject.replay

    Shares an Fx and replays up to the last capacity successes or failures to new subscribers.

  • Subject.share

    Shares one active execution of an Fx among subscribers through the supplied Subject.

  • Subject.unsafeMake

    Immediately allocates a Subject with the requested replay capacity and manual ownership.

Source