Home > Uncategorized > rxJs

rxJs

const myObservable =(observer)=>{
int i=0;
const id=setInterval(()=>{
observer.next(i++);
if(i === 10) observer.complete();},200);
}

observe for some action and perform some action and when action is done notify the completion of action by calling a callback
Monitor ==> action occured ==> perform action  ==> trigger completion functon

hi my name is Sriya Kollipara and I am the angel of the family.

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment