MCPcopy Index your code
hub / github.com/github/copilot-sdk / handlerTaskType

Function handlerTaskType

scripts/codegen/csharp.ts:1477–1480  ·  view source on GitHub ↗

Returns the ValueTask or ValueTask string for an incoming-handler's result type.

(method: RpcMethod)

Source from the content-addressed store, hash-verified

1475
1476/** Returns the ValueTask<T> or ValueTask string for an incoming-handler's result type. */
1477function handlerTaskType(method: RpcMethod): string {
1478 const schema = getMethodResultSchema(method);
1479 return !isVoidSchema(schema) ? `ValueTask<${resolvedResultTypeName(method)}>` : "ValueTask";
1480}
1481
1482/** Returns the Task<T> or Task string for an outgoing-call wrapper's result type. */
1483function resultTaskType(method: RpcMethod): string {

Calls 3

isVoidSchemaFunction · 0.85
resolvedResultTypeNameFunction · 0.85
getMethodResultSchemaFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…