Skip to main content

All Questions

Filter by
Sorted by
Tagged with
5 votes
2 answers
202 views

Get files downloaded asynchronously after double clicking on list item (C++)

The problem I am trying to solve as an exercise is as follows: I have a UI running in the main thread, specifically a list view with many items. Each item represents a file that the user can download....
M. Saintourens's user avatar
4 votes
1 answer
346 views

General Retry Strategy #2

Previous version Now supports async operations and cancellation. Let’s say we copy some file using retry strategy (it might be blocked, etc.). App code comes bellow: ...
Dmitry Nogin's user avatar
  • 6,131
4 votes
1 answer
93 views

Controller for a vehicle servicing AJAX app

I am working on a codebase that operates in the following manner: ...
user1477388's user avatar
7 votes
1 answer
520 views

Refactoring of a client API to avoid duplicated code and unclear passage of parameters

I need to develop an API. The functions of the API are requests that call the services exposed by a server. Initially the API worked like this: ...
k4ppa's user avatar
  • 173
3 votes
2 answers
3k views

Handling errors of nested promises

This is in one of my AngularJS controllers: ...
CodeVirtuoso's user avatar
5 votes
3 answers
4k views

Implementing a POC Async Web Crawler

I've created a small proof of concept web crawler to learn more about asynchrony in .NET. Currently when run it crawls stack overflow with a fixed number of current requests (workers). I was ...
CountZero's user avatar
  • 215
1 vote
1 answer
275 views

Is this factory method a good approach?

We are beginning to learn Node.js and we are not always sure if we do it the right way. We have a strong object oriented background so the adoption is not always easy. Right now we implemented a ...
tschoartschi's user avatar
6 votes
2 answers
1k views

Listener pattern implementation

In my project, I am doing asynchronous processes in almost every classes. To explain my problem, I have created a sample: ...
Vivart's user avatar
  • 161