You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In async function done keyword is not working
its giving error TypeError: select(...).then(...).done is not a function
`async function select (qry, dbName) {
const config = await someConfig()
let deferred = q.defer()
setTimeout(() => {
deferred.resolve('Some async operation')
}, 1000)
return deferred.promise
}
select()
.then((res) => {
console.log(res)
})
.done()`
with out async function done keyword work fine
The text was updated successfully, but these errors were encountered:
In async function done keyword is not working
its giving error TypeError: select(...).then(...).done is not a function
`async function select (qry, dbName) {
const config = await someConfig()
let deferred = q.defer()
setTimeout(() => {
deferred.resolve('Some async operation')
}, 1000)
return deferred.promise
}
select()
.then((res) => {
console.log(res)
})
.done()`
with out async function done keyword work fine
The text was updated successfully, but these errors were encountered: