Top "Task" questions

A task is an abstraction that is used to work with concurrency, it can denote operation that should be executed concurrently with the rest of a program.

What is the use for Task.FromResult<TResult> in C#

In C# and TPL (Task Parallel Library), the Task class represents an ongoing work that produces a value of type …

c# .net task-parallel-library task async-await
Delete a Jenkins Build via GUI

How can I delete a build from the Jenkins GUI? I know that I can delete the directory from the …

jenkins build task
What is the difference between a thread/process/task?

What is the difference between a thread/process/task?

process task terminology
'await' works, but calling task.Result hangs/deadlocks

I have the following four tests and the last one hangs when I run it. Why does this happen: [Test] …

c# nunit task deadlock async-await
Proper way of handling exception in task continuewith

Please have a look at the following code- static void Main(string[] args) { // Get the task. var task = Task.Factory.…

c# .net task-parallel-library task
How to over-write the property in Ant?

Is there a way to re-assign the value for the Ant property task? Or is there another task available for …

ant properties task
Await on a completed task same as task.Result?

I'm currently reading "Concurrency in C# Cookbook" by Stephen Cleary, and I noticed the following technique: var completedTask = await Task.…

c# asynchronous async-await task
How can I call an async method in Main?

public class test { public async Task Go() { await PrintAnswerToLife(); Console.WriteLine("done"); } public async Task PrintAnswerToLife() { int answer = await GetAnswerToLife(); …

c# asynchronous async-await task
C# - ThreadPool vs Tasks

As some may have seen in .NET 4.0, they've added a new namespace System.Threading.Tasks which basically is what is …

c# threadpool task
Promise equivalent in C#

In Scala there is a Promise class that could be used to complete a Future manually. I am looking for …

c# promise async-await task future