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.

Difference between Task and async Task

C# provides two ways of creating asynchronous methods: Task(): static Task<string> MyAsyncTPL() { Task<string> result = …

c# .net asynchronous task
How to create an efficient multi-threaded task scheduler in C++?

I'd like to create a very efficient task scheduler system in C++. The basic idea is this: class Task { public: …

c++ linux multithreading pthreads task
Creating a task that runs before all other tasks in gradle

I need to create an initialize task that will run before all other task when I execute it. task A { …

gradle task init
How to apply Task Async Pattern and WCF's ChannelFactory<TChannel>?

We have a robust WCF client built in 2008 on .NET 3.5 (now recompiled under .NET 4.0) that talks to our own WCF …

wcf asynchronous task channelfactory
How can I prevent synchronous continuations on a Task?

I have some library (socket networking) code that provides a Task-based API for pending responses to requests, based on TaskCompletionSource&…

c# .net task-parallel-library task async-await
TaskFactory.StartNew versus ThreadPool.QueueUserWorkItem

Apparently the TaskFactory.StartNew method in .NET 4.0 is intended as a replacement for ThreadPool.QueueUserWorkItem (according to this post, anyway). …

.net performance task threadpool taskfactory
AspNetCore (Kestrel) request timed out

I am having the following setup: a web api running in a couple of linux containers (built on aspnetcore 2.0.5) behind …

c# asp.net-core task kestrel-http-server
Understanding async / await and Task.Run()

I thought I understood async/await and Task.Run() quite well until I came upon this issue: I'm programming a …

c# asynchronous xamarin async-await task
CancellationTokenSource.Cancel is throwing an exception

As I read the documentation CancellationTokenSource.Cancel is not supposed to throw an exception. CancellationTokenSource.Cancel Below the call to …

c# .net task wait cancellationtokensource
Creating a execution queue by using Task.ContinueWith?

I have several actions that I want to execute in the background, but they have to be executed synchronously one …

c# task task-queue