Questions tagged as 'async'

1
answer

About the boolean attribute defer and async vs optimization

The use of async and defer for optimization is a good subject to play when we want pages loaded faster and also without blocking problems. Questions: Using async , if the browser does not support it, it ignores the att...
asked by 10.01.2015 / 21:53
3
answers

Execute PHP function asynchronously

Using PHP, is it possible to perform a function asynchronously? Example: The client makes a request to the server, in this request PHP executes an asynchronous function that can take a few seconds, but before it finishes, the server respon...
asked by 01.08.2014 / 13:51
2
answers

What are Async methods?

I noticed that most methods in C # have an equal method but with a name async . What are these methods and how do they work?     
asked by 05.01.2017 / 02:13
3
answers

When does not return Task in async methods?

Usually, in some time-consuming tasks, I use asynchronous methods: public async Task myLongRunningOperation(int i) { ... } However, in what situations do I not necessarily need to return a Task ? public async void myLongRunningOpera...
asked by 11.07.2017 / 04:02
5
answers

How to manage a SQLite connection between multiple concurrent threads?

So I'm having some problems with my connection to SQLite, where I'm not finding a workaround. Scenery My scenario is as follows: I synchronize the data of my application with a legacy system through a WebService; Synchronization is...
asked by 20.02.2014 / 14:35
1
answer

How to improve this: Hell callback?

I'm finishing the development of an ad system, the system uses the redis server to save data and display campaigns directly from ram, since the pathology of these systems requires a lot of disk consumption. At every x time I need to get the valu...
asked by 19.09.2018 / 17:09
3
answers

What are asynchronous processing and synchronous processing?

I'm having this doubt while I'm studying about the Handler class. In the book says that when a Thread is being used to perform some asynchronous processing and needs to update the graphical interface of the screen, it is required to use a...
asked by 05.09.2016 / 21:52
2
answers

AsyncTask x MultiThreading

When it is more advantageous to use AsyncTask, and when to use Threads. For example: Home Download some file (ex: JSON). Which would be more advantageous in this case and why ??     
asked by 06.05.2014 / 14:58
2
answers

How to filter a list asynchronously using LINQ?

Code sample without using async: var products = db.Products.Where(_ => _.UserId == currentUserId); How do I make this query asynchronous taking into account that Where of Linq does not support the use of await ?     
asked by 16.09.2014 / 18:05
1
answer

How to create a RESTful API with asynchronous processing and response using C # + Angular (v5 +)

Hello, I'm working with C # and I have the following problem: Imagine that I have a route for my API api/estoque/inventario where this route should calculate the inventory of the entire inventory of the application and on demand return...
asked by 04.09.2018 / 15:35