-
Notifications
You must be signed in to change notification settings - Fork 250
Open
Description
Feature request checklist
- There are no issues that match the desired change
- The change is large enough it can't be addressed with a simple Pull Request
- If this is a bug, please file a Bug Report.
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)
}
}
odsod, radhus, liufuyang, aaronc, mdgreenfield and 1 more
Metadata
Metadata
Assignees
Labels
No labels