We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff25aaa commit d1bce6bCopy full SHA for d1bce6b
asyncLogic.js
@@ -223,7 +223,7 @@ class AsyncLogicEngine {
223
}, top !== true && isSync(constructedFunction))
224
// we can avoid the async pool if the constructed function is synchronous since the data
225
// can't be updated :)
226
- if (top === true && constructedFunction && !constructedFunction[Sync]) {
+ if (top === true && constructedFunction && !constructedFunction[Sync] && typeof constructedFunction === 'function') {
227
// we use this async pool so that we can execute these in parallel without having
228
// concerns about the data.
229
return asyncPool({
0 commit comments