function / @typed/fx/RefSubject

filteredFromService

Defers retrieval of a Filtered value from Effect Context while preserving Filtered behavior.

Package version
2.0.0-beta.7
Category
Services
Since
1.18.0

Import

import { filteredFromService } from "@typed/fx/RefSubject";

Signatures

export declare function filteredFromService<R, A, E, R2>(effect: Effect.Effect<Filtered<A, E, R2>, never, R>): Filtered<A, E, R | R2>;

Why

Lets a service-provided Filtered participate directly in Effect reads and Fx observation without manually flat-mapping the service tag at every use.

Ownership and lifetime

The filtered from service view retains no independent value. Its Effect read fails with NoSuchElement while absent; the observing Scope owns and finalizes its Fx subscription.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source