How Rxjs observables are implemented internally?

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

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

I am particulary interested in the subscribe method, because its where the magic happens. i found this folder structure inside the repo

i will update this post once i figure out how it works



Post a Comment