I have converted observable to promise and then use await. Don't know this would be right approach or not. There must be better solution.
let result;
if(condition1) {
result = await firstValueFrom(asyncFun1())
} else {
result = await firstValueFrom(asyncFun2())
}
commongcode