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
Comments (0)
Trackbacks (0)
Leave a comment
Trackback