If I use async/await function in a nested function call, I think the callers of that async/await functions should have async/await prefix.
For example, in this situation:
function a() {
b();
}
function b() {
c();
}
function c() {
d();
}
...
function y() {
z();
}
If z
was async function, those functions should be:
async function a() {
await b();
}
async function b() {
await c();
}
async function c() {
await d();
}
...
async function y() {
await z();
}
When/How is it appropriate to stop the chaining of async/await?
await
have to be inasync
function, haven't it? – Sink