Controlling Execution Flow While Producing IAsyncEnumerable Sequences

Producing IAsyncEnumerable The introduction of IAsyncEnumerable to C# allowed for simplifying a lot of scenarios that used to require a lot of code to get async behavior similar to an equivalent synchronous scenario. The await foreach construction specifically makes the consumption side almost trivial. The combination of the delayed execution of IEnumerable and asynchrony does add some complexity though, which can often come into play on the side of producing the async collection and trying to build control flow or error handling into the process....

April 26, 2023 · 13 min · 2597 words · John Bowen

Blazor WASM Initial Load Time Performance - Async Data

Part of a series on Blazor WASM initial load performance Server Prerendering Improving Data Loading Authentication In Prerendering Part 2: Improving Data Loading As seen in the previous post, Prerendering can mitigate the initial page load time problem, but there are some new problems introduced by this solution. Using this technique requires loading the same data on both the server side (for initial component rendering) and client side (from the full application) during the different phases of app startup, which can cause identical data loading requests to be made multiple times from the same app instance....

January 24, 2023 · 5 min · 936 words · John Bowen