SarkariResultess QA Bank

Async function call करने के लिए क्या चाहिए? — error आने पर developer क्या करे?

Other 0 Views Verified
Async function call करने के लिए क्या चाहिए? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

await.result(fetch())

await.result(fetch())
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified Correct Answer

result = await fetch()

result = await fetch()
Additional Explanation
Coroutine को async context में await किया जाता है। पहले traceback की exact line और input value check करें।
Verified

result = async fetch()

result = async fetch()
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

result = fetch().await()

result = fetch().await()
Additional Explanation
यह विकल्प सही समाधान नहीं है।