MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / greet

Method greet

examples/context/src/value-promise.ts:50–56  ·  view source on GitHub ↗

* Async was of greeting * @param name - Name

(name: string)

Source from the content-addressed store, hash-verified

48 * @param name - Name
49 */
50 greet(name: string): Promise<string> {
51 return new Promise<string>(resolve =>
52 setImmediate(() => {
53 resolve(`[promise] 你好,${name}!`);
54 }),
55 );
56 }
57}
58
59export async function main() {

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.70

Tested by

no test coverage detected