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.

Task.WaitAll method vs Parallel.Invoke method

I have sample code to compare processing time for Parallel approach and Task approach. The goal of this experiment is …

c# parallel-processing task
Using Ant, is it possible to use AND, OR condition in tag IF?

contrib It's possible to check more condition in tag IF? I need to do something like this : <if> &…

java ant task ant-contrib
Gradle: Passing variable from one task to another

I want to pass a variable from one task to another, in the same build.gradle file. My first gradle …

git variables groovy gradle task
AfterPublish target not working

World's simplest task (see below) is not being executed after I publish my web application project. Any idea why? <…

msbuild publish task
How to pass LongRunning flag specifically to Task.Run()?

I need a way to set an async task as long running without using Task.Factory.StartNew(...) and instead using …

c# .net asynchronous task
How to a synchronize tasks?

Say I have an async method which saves to file: async Task SaveToFileAsync() { var file = await folder.GetFileAsync ( ...) var stream = …

c# asynchronous task microsoft-metro windows-runtime
What is the point of .NET 4.6's Task.CompletedTask?

This blog post mentions the new Task APIs, including a new Task.CompletedTask property introduced in .NET 4.6. Why was this …

c# task .net-4.6
Threading.Tasks.Task' does not contain a definition for 'Result'

So i'm trying to learn how to program with Task's and i'm doing an exercise: public static int ReturnFirstResult(Func&…

c# .net task
what does gulp-"cli" stands for?

Can someone please explain what exactly are the differences between the following two methods of gulp installation: $ npm install --global …

gulp task runner
Have a set of Tasks with only X running at a time

Let's say I have 100 tasks that do something that takes 10 seconds. Now I want to only run 10 at a time …

c# multithreading task