I have this loop:
public static void ForEachValue<T>(Action<T> F)
{
foreach (var E in GetValues<T>())
{
F(E);
}
}
It allows to iterate through enum members and call a method for each.
I would like to allow to take async methods as well and await them, but I can't find the syntax that would work.