MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / promise

Method promise

Extension/src/Utility/System/guards.ts:32–34  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

30 }
31
32 static promise(value: any): value is Promise<any> {
33 return isPromise(value) || (value && typeof value.then === 'function');
34 }
35
36 static iterable<T = unknown>(instance: any): instance is Iterable<T> {
37 return !(is.nullish(instance) || is.string(instance)) && !!instance[Symbol.iterator];

Callers 15

logDebuggerEventFunction · 0.80
logLanguageServerEventFunction · 0.80
logCopilotEventFunction · 0.80
statsMethod · 0.80
parentMethod · 0.80
readDirectoryFunction · 0.80
typeOfFunction · 0.80
getOrAddFunction · 0.80
firstFunction · 0.80
firstOrFailFunction · 0.80
stringifyFunction · 0.80
finalizeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected