MCPcopy Create free account
hub / github.com/cel-expr/cel-go / SetResult

Method SetResult

interpreter/async.go:312–319  ·  view source on GitHub ↗

SetResult sets the completed result for an asynchronous function call.

(res ref.Val)

Source from the content-addressed store, hash-verified

310
311// SetResult sets the completed result for an asynchronous function call.
312func (acs *asyncCallState) SetResult(res ref.Val) {
313 if acs == nil {
314 return
315 }
316 acs.mu.Lock()
317 defer acs.mu.Unlock()
318 acs.result = res
319}
320
321// launch returns a call's cached result, or starts the call (subject to the launch limiter) and
322// returns an Unknown referencing its callID while the result is pending.

Callers 1

launchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected