Top "Task-parallel-library" questions

The Task Parallel Library is part of the .NET Framework since .NET 4. It is a set of APIs to enable developers to program asynchronous applications.

Why is TaskScheduler.Current the default TaskScheduler?

The Task Parallel Library is great and I've used it a lot in the past months. However, there's something really …

c# .net task-parallel-library conceptual synchronizationcontext
Asynchronous methods of ApiController -- what's the profit? When to use?

(This probably duplicates the question ASP.NET MVC4 Async controller - Why to use?, but about webapi, and I do …

asp.net-web-api task-parallel-library async-await asynccontroller
How to cancel Task await after a timeout period

I am using this method to instantiate a web browser programmatically, navigate to a url and return a result when …

c# .net webbrowser-control task-parallel-library console-application
Write your own async method

I would like to know how to write your own async methods the "correct" way. I have seen many many …

c# .net asynchronous task-parallel-library async-await
How can I assign a name to a task in TPL

I'm going to use lots of tasks running on my application. Each bunch of tasks is running for some reason. …

c# task-parallel-library parallel.foreach
await in Parallel.foreach

I have an async method which will be used in Parallel.Foreach. in the async method there is await for …

c# async-await task-parallel-library parallel.foreach
Task.ContinueWith method requires task argument?

I have a class with two methods, Load() and Process(). I want to be able to run these individually as …

c# task-parallel-library multitasking
TPL Dataflow, guarantee completion only when ALL source data blocks completed

How can I re-write the code that the code completes when BOTH transformblocks completed? I thought completion means that it …

c# concurrency task-parallel-library tpl-dataflow
Does using Tasks (TPL) library make an application multithreaded?

Recently when being interviewed, I got this question. Q: Have you written multithreaded applications? A: Yes Q: Care to explain …

c# multithreading .net-4.0 task-parallel-library multitasking
What is correct way to combine long-running tasks with async / await pattern?

I have a "High-Precision" timer class that I need to be able to be start, stop & pause / resume. To …

c# xamarin.ios task-parallel-library async-await long-running-processes