Publication contracts
Subjectinterface
A multicast boundary that is both an
Fxof its publications and aSinkthat accepts them. Successes and failures are pushed to every subscriber present when that publication begins.
Sharing sources
Shareclass
The concrete lazy
Fxreturned byshare.holdfunction
Shares an
Fxand immediately replays its latest success or failure to each new subscriber.multicastfunction
Multicasts an
Fxwithout replaying values that arrived before a subscriber joined.replayvariable
Shares an
Fxand replays up to the lastcapacitysuccesses or failures to new subscribers.sharefunction
Shares one active execution of an
Fxamong subscribers through the suppliedSubject.
Subject construction
makefunction
Acquires a
Subjectwhose subscribers and replay state are released with the currentScope.unsafeMakefunction
Immediately allocates a
Subjectwith the requested replay capacity and manual ownership.
Subject services
Servicefunction
Defines an Effect context service that is simultaneously a
Subject,Fx, andSinkfacade.Subject.Classinterface
A constructible service facade whose static side is also the contextual
Subject.Subject.Serviceinterface
The service-shaped form of a
Subjectcreated bySubject.Service.