Свежий пост на блоге Microsoft про async/await и их работу, а также про: SynchronizationContext, TaskScheduler, ConfigureAwait и многое другое
https://devblogs.microsoft.com/dotnet/configureawait-faq
#async #await
https://devblogs.microsoft.com/dotnet/configureawait-faq
#async #await
Microsoft News
ConfigureAwait FAQ
.NET added async/await to the languages and libraries over seven years ago. In that time, it’s caught on like wildfire, not only across the .NET ecosystem, but also being replicated in a myriad of other languages and frameworks. It’s also seen a ton of improvements…
Работа с асинхронными потоками в C# 8
https://developers.redhat.com/blog/2020/02/24/c-8-asynchronous-streams
#asynchronous #stream #async
https://developers.redhat.com/blog/2020/02/24/c-8-asynchronous-streams
#asynchronous #stream #async
Red Hat Developer
C# 8 asynchronous streams | Red Hat Developer
.NET Core 3.1 (December 2019) includes support for C# 8, a new major version of the C# programming language. In this series of articles, we'll look at the new
Тонкости использования ref struct при работе с асинхронными методами.
https://blogs.endjin.com/2020/03/high-performance-c-a-test-pattern-for-ref-structs
#ref #struct #async
https://blogs.endjin.com/2020/03/high-performance-c-a-test-pattern-for-ref-structs
#ref #struct #async
Endjin
High-performance C#: a test pattern for ref structs | endjin
C# 7.2 introduce ref structs, a new kind of type (Span is a ref struct) designed to support certain high performance scenarios. There are constraints around their use, and when writing unit tests for our Ais.Net parser, this caused some challenges. This blog…
Если так вышло, что последние лет десять вы провели в глубоком legacy, попали в будущее с помощью машины времени, или только начали изучать аснхорнность, то вам точно пригодится небольшой чек-лист по работе с async/await в C#
https://jamiemagee.co.uk/blog/7-tips-for-converting-csharp-code-to-async-await
#async #await
https://jamiemagee.co.uk/blog/7-tips-for-converting-csharp-code-to-async-await
#async #await
jamiemagee.co.uk
7 tips for converting C# code to async/await
Over the past year I’ve moved from working mainly in Java, to working mainly in C#. To be honest, Java and C# have more in common than not, but one of the major differences is async/await. It’s a really powerful tool if used correctly, but also a very quick…
C#: чистый, ленивый и асинхронный.
https://itnext.io/fun-csharp-pure-lazy-and-async-pipeline-creation-204923eb6e14
#Fun #CSharp #Pure #Lazy #Async
https://itnext.io/fun-csharp-pure-lazy-and-async-pipeline-creation-204923eb6e14
#Fun #CSharp #Pure #Lazy #Async
Medium
Fun CSharp: Pure, Lazy and Async pipeline creation.
A few days ago, I had the need to create an async pipeline that consisted of actions (methods) composing over each other. I also wanted…
async / await одной картинкой
https://tooslowexception.com/net-asyncawait-in-a-single-picture/
#async #await
https://tooslowexception.com/net-asyncawait-in-a-single-picture/
#async #await
Изящный способ вынести мозг тому, кто будет делать ревью вашего кода
https://tooslowexception.com/await-false-await-true/
#crazy #await #async
https://tooslowexception.com/await-false-await-true/
#crazy #await #async
Автор сегодняшней статьи рассмотрит подводные камни, которые бывают при использовании и не использовании ключевых слов async/await при работе с асинхронными методами.
https://drakelambert.dev/2020/07/Asynchronous-Method-Without-async-in-C%23
#async #await
https://drakelambert.dev/2020/07/Asynchronous-Method-Without-async-in-C%23
#async #await
the-drizzle
Asynchronous Method Without async in C#
Drake’s blog
Каналы дают возможность взаимодействовать между асинхронными операциями в .NET Тип Channel <T> был включен в .NET Core 3.0 и доступен разработчикам уже довольно давно. Поэтому сегодня напомним о том, как можно использовать каналы.
https://jeremybytes.blogspot.com/2021/02/an-introduction-to-channels-in-c.html
#Channel #async #net30
https://jeremybytes.blogspot.com/2021/02/an-introduction-to-channels-in-c.html
#Channel #async #net30
Blogspot
An Introduction to Channels in C#
Channels give us a way to communicate between concurrent (async) operations in .NET. Channel<T> was included in .NET Core 3.0 (prior to...
Проблемы с Async, Await, которые могут возникнуть при разработке UI
https://www.i-programmer.info/programming/c/1514-async-await-and-the-ui-problem.html
#async #await
https://www.i-programmer.info/programming/c/1514-async-await-and-the-ui-problem.html
#async #await
www.i-programmer.info
Async, Await and the UI Problem
Programming book reviews, programming tutorials,programming news, C#, Ruby, Python,C, C++, PHP, Visual Basic, Computer book reviews, computer history, programming history, joomla, theory, spreadsheets and more.
В .NET 6 вы сможете корректно отменить асинхронную операцию, даже если разработчик, который ее реализовывал, этого не предусмотрел
https://www.infoq.com/news/2021/04/Net6-Async/
#NET6 #async #await
https://www.infoq.com/news/2021/04/Net6-Async/
#NET6 #async #await
InfoQ
.NET 6: Async Improvements
Among the over 100 API changes in .NET 6 are several features designed to make working with asynchronous code easier and safer. These include new WaitAsync methods, reusable CancellationTokenSource, and execution context management.
Про Task-based Asynchronous Pattern и исключения в асинхронном коде в первой части статьи от Aaron Bos
https://aaronbos.dev/posts/async-csharp-pt1
#task #async #await
https://aaronbos.dev/posts/async-csharp-pt1
#task #async #await
aaronbos.dev
Asynchronous Programming in C# - Part 1
Writing code is hard. Writing asynchronous code is even harder. Luckily C# provides us with the `async` and `await` keywords to make asynchronous programming a little easier. This is the first of a series of posts in which I'll be going over writing asynchronous…
Deep dive статья о реализации асинхронности в Linq
https://blog.i3arnon.com/2021/07/12/async-linq-operator/
#async #await #linq
https://blog.i3arnon.com/2021/07/12/async-linq-operator/
#async #await #linq
Bar Arnon
Evolution of An Async LINQ operator
From deferred execution to cancellation and ConfigureAwait(false), an async LINQ operator has some tricky parts to get correctly.
Пример простого использования лока в асинхронном методе
https://codyanhorn.tech/blog/net-locking-in-an-async-method
#lock #SemaphoreSlim #async @await
https://codyanhorn.tech/blog/net-locking-in-an-async-method
#lock #SemaphoreSlim #async @await
codyanhorn.tech
.NET locking in an Async Method | Cody's Personal Site
This article is a code snippet for handling the locking of an async process to a single thread in .NET.
Асинхронная обработка длительных задач в ASP.NET Core
https://blog.elmah.io/async-processing-of-long-running-tasks-in-asp-net-core
#async #asonet #aspnetcore
https://blog.elmah.io/async-processing-of-long-running-tasks-in-asp-net-core
#async #asonet #aspnetcore
elmah.io Blog - .NET Technical tutorials/guides and new features
Async processing of long-running tasks in ASP.NET Core
In this post, I'll show you how to implement async processing in ASP.NET Core, using a queue and the Background Worker feature.
Асинхронная версия Parallel.ForEach – вы ведь ждали ее? Теперь в .NET 6 она есть!
https://devdigest.today/goto/1855
#async #await #net6 #parallel #foreach
https://devdigest.today/goto/1855
#async #await #net6 #parallel #foreach
Greg Bair
Parallel.ForEachAsync Deep Dive
This post is part of the 2021 C# Advent calendar. Check it out for more C# goodness!
Intro This post contains a very technical dive. It is of intermediate complexity, and assumes a basic knowledge of how async/await works.
.NET 6 introduced a small feature…
Intro This post contains a very technical dive. It is of intermediate complexity, and assumes a basic knowledge of how async/await works.
.NET 6 introduced a small feature…