(v any)
| 14 | } |
| 15 | |
| 16 | func GetContext(v any) context.Context { |
| 17 | switch v := v.(type) { |
| 18 | case Context: |
| 19 | return v.v |
| 20 | case TaskCtx: |
| 21 | return v.v |
| 22 | } |
| 23 | return nil |
| 24 | } |
| 25 | |
| 26 | func GetVM(v any) *VM { |
| 27 | switch v := v.(type) { |
no outgoing calls
no test coverage detected