MCPcopy
hub / github.com/xpf0000/FlyEnv / then

Method then

src/shared/ForkPromise.ts:41–46  ·  view source on GitHub ↗
(
    onFulfilled: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null,
    onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null
  )

Source from the content-addressed store, hash-verified

39 }
40
41 then<TResult1 = T, TResult2 = never>(
42 onFulfilled: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null,
43 onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null
44 ) {
45 return this.promise.then(onFulfilled, onrejected)
46 }
47
48 catch<TResult = never>(
49 onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null

Callers 2

stopHttpServerFunction · 0.45
_handleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected