Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
7
import
{getLogger} from
'./logger'
;
8
9
function
isPromise(e: any): boolean {
10
return
!!e && typeof e.then ===
'function'
;
11
}
12
13
const
logger = getLogger(
'profiler'
);
14
Callers
2
profiler
Function · 0.85
profilerWrap
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected