The answer to this question would be William James.
William James studies how did the process of thought in human works. He was a medical doctor from Harvard and later become a prominent psychologist.
It is called stream of consciousness because it is assumed that thinking is like water on the river that will always be flowing.