Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Latest commit

 

History

History
26 lines (16 loc) · 758 Bytes

Subject.md

File metadata and controls

26 lines (16 loc) · 758 Bytes

com.industry.rx_epl.Subject <>

A simple subject that allows values to be sent to all subscribers.

Constructors

# static .create() returns ISubject <>

Creates a new Subject.

ISubject s := Subject.create();

ISubscription sub1 := s.subscribe(...);
s.next("Value1"); // Output (from sub1): "Value1"

ISubscription sub2 := s.subscribe(...);
s.next("Value2"); // Output (from sub1 and sub2): "Value2"

sub1.dispose();
s.next("Value3"); // Output (from sub2): "Value3"

s.complete(); // sub2 terminates (calling it's onComplete)