Is there a way to execute a function after the response is completed without using setTimeout()? I am facing an issue with uploading large files where the waiting time is insufficient.
this.orderTestService.orderObservable$
.pipe(untilDestroyed(this))
.subscribe((response) => {
if(response){
setTimeout( () => {
this.service.getDocuments(); }, 1000 );
}
}
});