Someone searching for “C# Task.WhenAll return value” wants to know what the method returns, ideally with a short code example. Someone searching for “learn async await in C#” needs a place to start: what asynchronous work is, how to await it, and what to try next. Both readers are looking up asynchronous programming, but the first needs a reference and the second needs a tutorial.
1. Describe the task behind the search
Search intent is what someone hopes to accomplish with a search. Start with the exact query and rewrite it as something the reader might say. “C# async await deadlock” might mean “My code hangs, and I need to find out why and what to change.” “C# vs JavaScript for a first language” might mean “Which language should I learn for the projects I want to build?” One reader needs help diagnosing a problem. The other needs criteria for making a choice.
Look at what the query tells you about where the reader is starting. If they’ve pasted an exception message into a search box, they probably have code running and want to get unstuck. Someone asking “what is a promise in JavaScript” may still need to see how an asynchronous operation differs from a synchronous one. An explanation can be technically correct and still miss the mark if it starts too far ahead or spends too long on things the reader already knows.
2. Inspect search results before committing to a format
Search for the exact phrase and one or two variations you’d actually type. Open several relevant results; the titles alone can be misleading. Note what kind of page each result is, what it gives the reader near the top, and what it assumes they already know. A “Complete Guide” might be a short reference, while a page labeled as documentation might walk you through an entire project.
- Look for repeated formats. If several pages lead with syntax, parameters, and a short example, readers are probably looking for a quick answer. If most start with setup and build through a series of exercises, a tutorial may be a better fit.
- Notice when a query could mean two things. “C# async example” might be a request for a snippet to adapt or for a guided introduction. If the results include both, pick the one your audience needs and make that clear in the title.
- Treat the results as clues, not rules. What you see can change with location, language, and time. The results suggest what readers might want; they don’t dictate what you have to publish.
Use what you find to pin down the task, not to copy someone else’s outline. If the existing pages explain what a method does but leave beginners guessing which overload they’re calling, a short example that shows the difference will do more good than a longer introduction.

3. Pick the page type that delivers the answer
Ask what the reader should leave with: an explanation, working code, a diagnosis, a decision, or a next step. That tells you what to put near the top.
| Example search | Page type | What to deliver first |
|---|---|---|
| What is a JavaScript promise? | Concept explainer | A plain-language definition and an example of an operation whose result becomes available later |
| Build a C# console app with async and await | Hands-on tutorial | What the finished app will do, what readers need, and the first step they can run |
| C# Task.WhenAll return value | API reference | The difference between overloads that return Task and those that return Task<TResult[]> |
| JavaScript cannot read properties of undefined | Troubleshooting guide | What the error means and how to find the value that’s undefined |
| WPF vs WinUI 3 for a first desktop app | Comparison | The trade-offs that matter for a first project, including tooling, learning resources, and deployment |
| C# learning path for a junior developer | Roadmap | Milestones in the order readers should tackle them, with a concrete first exercise |
Give each format its own structure
Build a troubleshooting guide around checks. For the JavaScript error above, show readers how to find the property access on the failing line and inspect the value just before that access. Then help them work through the likely causes: a lookup found no match, a nested field is missing, or the data hasn’t arrived yet. Optional chaining makes sense when the value can legitimately be missing. Don’t use it to hide a bug when the code needs that value.
In a tutorial, give readers a way to check their work after each major step. Show them what output they should see when they run the console app, for example. In a reference, put the signature and return behavior before the longer code example so readers can find the answer quickly. In a comparison, judge both options by the same criteria so readers can make a choice instead of piecing one together from two separate descriptions.
4. Decide whether related searches need separate pages
Group queries by what readers want to do, not by the words they share. “Await a promise in JavaScript” and “how to use await with a promise” can usually share a practical guide. “What is a promise?” and “Promise.all vs Promise.allSettled” may need separate pages. The first explains how promises work; the second helps readers decide how to handle several operations when one might fail.
Try drafting the first heading and example for each query. If both drafts start with the same answer and assume the same background, one page is probably enough. If one calls for a diagram of promise states and the other needs a side-by-side example showing what happens when an operation fails, combining them may bury the answer for both readers.
Different questions can still belong on the same page. A guide to “async void in C#” can open with a short definition, then explain when async void is appropriate, such as in event handlers. It can also show why a method should usually return a task if callers need to await it. The definition gives readers the context they need to make that choice.
5. Check whether an existing page can do the job
Before creating a new URL, review the pages you already have. Compare their titles, openings, and examples with the task you identified. If you have search performance data, check which queries bring impressions and clicks to each page. A low click-through rate doesn’t necessarily mean the page answers the wrong question. The title, its position in the results, or the way the results page looks could also explain it.
Back up existing pages before making changes. Save the current copy, title, and URL, especially if you plan to merge or split pages. Keep the URL if the rewrite still serves the same task. If you retire a page and have a replacement that answers the same need, redirect the old URL to it and update any internal links that point to the retired page.
Start with the smallest change that solves the problem. If a C# tutorial has a working example buried under a long history of asynchronous programming, move the prerequisites and runnable example higher up. But if the page is a broad introduction and the query asks how a particular overload behaves, write a separate reference rather than making the introduction do both jobs.
6. Verify the match before and after publishing
Read just the title, opening paragraph, and first heading. Do they all set the same expectation? Then ask someone who fits the intended audience to try the page. Give a beginner the tutorial prerequisites and see if they can reach the first checkpoint. For a reference, ask someone who already knows the basics to find the return type or example without reading the whole page.
Record the date when you publish or rewrite a page so you can compare later search data with your baseline. Look at the queries for that page rather than relying on sitewide traffic. If there’s little data, don’t read too much into a handful of impressions. A reader who gets stuck during a walkthrough, or a question that keeps coming up, can point to a change you can actually make.
For “C# Task.WhenAll return value,” try a specific test: can readers tell what happens when they pass several Task<int> instances without scrolling through a full program? Put the answer next to the signature: the call returns a Task<int[]>. When the await succeeds, the array holds the results in the order the tasks were supplied, not the order they finished.
