MCPcopy Create free account
hub / github.com/subquery/subql / isPromise

Function isPromise

packages/node-core/src/profiler.ts:9–11  ·  view source on GitHub ↗
(e: any)

Source from the content-addressed store, hash-verified

7import {getLogger} from './logger';
8
9function isPromise(e: any): boolean {
10 return !!e && typeof e.then === 'function';
11}
12
13const logger = getLogger('profiler');
14

Callers 2

profilerFunction · 0.85
profilerWrapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected