Reactive Programing

<aside> πŸ’‘ λ°μ΄ν„°μ˜ 흐름을 λ¨Όμ € μ •μ˜, 데이터가 λ³€κ²½ μ‹œ μ—°κ΄€λ˜λŠ” ν•¨μˆ˜λ‚˜ μˆ˜μ‹μ΄ μ—…λ°μ΄νŠΈ λ˜λŠ” 방식

</aside>

<aside> πŸ’‘ ν”„λ‘œκ·Έλž˜λ¨Έκ°€ μž‘μ„±ν•œ μ½”λ“œκ°€ 정해진 μ ˆμ°¨μ— 따라 μˆœμ„œλŒ€λ‘œ 진행

</aside>

Pull / Push

RXjava μ‹œμž‘ν•˜κΈ°

implementation 'io.reactivex.rxjava2:rxjava:3.1.3'

2021-12-09 κΈ°μ€€ μœ„ 버전

public class FirstExample { 
	public void emit() { 
		Observable.just("Hello", "RxJava 2!!") 
			.subscribe(System.out::println); 
	} 

public static void main(String args[]) { 
	FirstExample demo = new FirstExample(); 
	demo.emit(); 
	} 
}