IsAsync returns true if the function has an async binding.
()
| 324 | |
| 325 | // IsAsync returns true if the function has an async binding. |
| 326 | func (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. |
| 343 | func (f *FunctionDecl) HasLateBinding() bool { |
no outgoing calls