An async function or method must have a valid awaitable return type



While trying to create an async function with a return type, i encounter this error message :-

"An async function or method must have a valid awaitable return type"

this simply means that we need to have a function with the following signature which receive a Promise 





That's it ! :)




Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type