Hi I canĀ“t find a solution to my problem of functions in cascade,
Service A
print(await serviceB.methodA(myParameter));
Service B
async methodA(MyParameter){
await methodB(MyParamter).then((value) =>{
serviceA.methodC(value).then((result)=>{
console.log('result');
return result;
});
}
);
console.log('hi');
}
So the output is
hi
undefined
result
How I can wait to the second cascade of the then?? Because when getting undefined is broking my service A that must get “result”