Feature request checklist
Change
Currently, it is possible to use go contexts with the ContextEval(context.Context, interface{}) method. However, this context is not usable by function overloads.
Example
fn := &functions.ContextOverload{
Operator: "longRunningOperation",
Unary: func(ctx context.Context, value ref.Val) {
if err := longRunningOperation(ctx, value.Value()); err != nil {
return types.Bool(false)
}
return types.Bool(true)
}
}
Feature request checklist
Change
Currently, it is possible to use go contexts with the
ContextEval(context.Context, interface{})method. However, this context is not usable by function overloads.Example