I got curious about how they are implemented internally but i couldnt find a resource which explains this stuff, hence this post.
RxJs is a library which allows to do reactive programming in js. I was curious because js is single threaded, i really wanted to see what happens in the background. so i asked chatgpt
![](https://naveenmuthusamy.files.wordpress.com/2022/12/image.png?w=714)
This doesn't make any sense to me, its using the observer design pattern. But the code is blocking, so i cloned the repo from here
https://github.com/ReactiveX/rxjs
I am particulary interested in the subscribe method, because its where the magic happens. i found this folder structure inside the repo
![](https://naveenmuthusamy.files.wordpress.com/2022/12/image-1.png?w=478)
i will update this post once i figure out how it works
Seriously ? you wrote a blog on it just to tell that you don't know.
ReplyDelete