You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FunctionName("Generator")]
public static async IAsyncEnumerable<dynamic> Generator([PerperTrigger] dynamic parameters, ILogger logger)
{
for (var i = 0; i <= parameters.Count; i++)
{
yield return new { Num = i };
}
}
var generator = await context.StreamFunctionAsync<dynamic>("Generator", new { Count = count });
await foreach(var element in generator){
...
}
The foreach will iterate through the numbers from 0 to 10 and it will freeze