Skip to content

Commit

Permalink
Update schemaInstrumentation.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
glasser authored Mar 5, 2024
1 parent 764bb09 commit 2a0e060
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/server/src/utils/schemaInstrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ function isPromise(x: any): boolean {

// Given result (which may be a Promise or an array some of whose elements are
// promises) Promises, set up 'callback' to be invoked when result is fully
// resolved.
// resolved. (Unfortunately, this does not perfectly handle every possible
// return value shape, such as arrays of arrays of Promises.)
export function whenResultIsFinished(
result: any,
callback: (err: Error | null, result?: any) => void,
Expand Down

0 comments on commit 2a0e060

Please sign in to comment.