Skip to content

Instantly share code, notes, and snippets.

@FrancescoBonizzi
Created October 5, 2021 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrancescoBonizzi/a7c66afa6d1f7c3454e3b3f0ba929f77 to your computer and use it in GitHub Desktop.
Save FrancescoBonizzi/a7c66afa6d1f7c3454e3b3f0ba929f77 to your computer and use it in GitHub Desktop.
var boolli = new Evaluator();
bool result = await boolli.EvaluateFuncOfBoolExpressionAsync(
"f3 and f4",
new NamedAsyncBooleanFunction[]
{
new NamedAsyncBooleanFunction("f3", async () => { await Task.Delay(100); return true; }),
new NamedAsyncBooleanFunction("f4", async () => { await Task.Delay(100); return true; }),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment