Questions tagged [async-await]
This covers the asynchronous programming model supported by various programming languages, using the async and await keywords.
337 questions
44
votes
3
answers
6k
views
Simon Says: "Make me a pretty game"
In Memoriam
Ralph H. Baer, co-inventor of the original "Simon" game, died Saturday December 6th 2014, at 92. With his passing, this friendly little challenge inadvertently became a memorial to ...
28
votes
1
answer
77k
views
Use of Async/Await for EventHandlers
I have a MVC WinForms application. I am using Dependency Injection with Ninject as the IoC container.
...
23
votes
2
answers
401
views
RubberduckParser 2.0 - Asynchronous Parsing
The IRubberduckParser interface has seen breaking changes, and now looks like this:
...
15
votes
2
answers
5k
views
Asynchronous Circular Buffer in C#
Preamble
I want to be able to test methods which communicate over a simple exclusively asynchronous two-way stream-like interface which may underneath use any of a number of communication methods (e....
14
votes
2
answers
47k
views
Using async / await with dynamic import() for ES6 modules
I am experimenting with the best way to standardise my dynamic import() expressions when importing javascript modules.
import() ...
14
votes
2
answers
7k
views
Implementation of Asynchronous Cache
I have been attempting to implement a cache which caches the results of an asynchronous method, with the restriction that I only want that method to run once for any particular item in the cache. Many ...
13
votes
1
answer
27k
views
Filtering a collection by an async result
I'm trying to do something like this:
var loudDogs = dogs.Where(async d => await d.IsYappyAsync);
The "IsYappyAsync" property would return a ...
13
votes
0
answers
3k
views
Socket application using TPL
This is an application I wrote that allows multiple TCP clients to share a single TCP connection to a remote server (hosted project, and a demo). Traffic generated by the server is forwarded to all ...
12
votes
3
answers
450
views
Async insecurities
I feel like I'm overdoing the async await stuff. I'm just learning. Maybe this isn't the best instance to be using this stuff.
I have a system with sensors that detect the completion of some action....
12
votes
2
answers
3k
views
Async wrapper around public API
Tear it apart. I'm mostly concerned around the appropriate use of ConfigureAwait(false), and possible poor handling and duplication of the ...
12
votes
2
answers
967
views
Stack Exchange websockets wrapper
I've been writing a small library that allows for easy querying of the Stack Exchange websockets.
I'm going to add an enum to replace the manual ...
12
votes
2
answers
17k
views
Get values from Web service asynchronously
I am working on creating some libraries for a project at work and I wanted to make sure I have this pattern correct. Assuming that the GetWidgets() method is what I ...
11
votes
3
answers
788
views
Asynchronously scrape fabric information
This is my first asyncio/aiohttp web scraper. I am trying to wrap my head around Python's asyncio/aiohttp libs these days and I am not sure if I fully understand it or not yet. So I'd like have some ...
11
votes
2
answers
16k
views
Console chat server
I'm just looking for feedback on correctness of my understanding of async/await. I'm curious about the Task.Run inside of the ...
11
votes
2
answers
3k
views
NewtonSoft Json.Net serialiser
I'm just starting to develop more in C# after being mainly a VB.NET developer and was looking for someone to critique my implementation of a NewtonSoft Json.Net serialiser.
Can you provide some ...