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

Method IsAsync

common/decls/decls.go:326–340  ·  view source on GitHub ↗

IsAsync returns true if the function has an async binding.

()

Source from the content-addressed store, hash-verified

324
325// IsAsync returns true if the function has an async binding.
326func (f *FunctionDecl) IsAsync() bool {
327 if f == nil {
328 return false
329 }
330 if f.singleton != nil && f.singleton.Async != nil {
331 return true
332 }
333 for _, oID := range f.overloadOrdinals {
334 o := f.overloads[oID]
335 if o.IsAsync() {
336 return true
337 }
338 }
339 return false
340}
341
342// HasLateBinding returns true if the function has late bindings. A function cannot mix late bindings with other bindings.
343func (f *FunctionDecl) HasLateBinding() bool {

Callers 3

isAsyncFunctionCallFunction · 0.45
TestAsyncBindingFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestAsyncBindingFunction · 0.36