Questions tagged as 'assincronismo'

7
answers

In C #, what is the key word await?

I was studying this documentation on Asp.net Identity , and the examples in C # have a keyword that I do not know, which is await , example: [HttpPost] [AllowAnonymous] [ValidateAntiForgeryToken] public async Task<ActionResult> Re...
asked by 29.01.2014 / 17:36
1
answer

How does asynchronous programming work in JavaScript?

As far as I know, asynchronous programming in C #, for example, uses the idea of threads. The tasks to be executed can be divided into threads and can then be executed in parallel. I've always thought that JavaScript is the same and that, for ex...
asked by 24.05.2014 / 16:55
1
answer

In new browsers now there will be no more synchronous requests?

I saw today in my Google Chrome , updated to version 40.0.2214.91 , a message that said    Synchronous XMLHttpRequest on the main thread is deprecated because of   its detrimental effects to the end user's experience translati...
asked by 23.01.2015 / 12:07
3
answers

When using success: function () and .done (function ()) in asynchronous requests?

In a simple way, I can write an asynchronous request like: $.ajax({ url: url, dataType: 'json', type: 'GET', success: function (_user){ alert (_user) } }); that alerts me to the _user return. Also, I write...
asked by 27.07.2016 / 19:39
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
2
answers

What is asynchrony?

In a question about using or not using Node Js , I ended up giving an explanation of what is asynchrony . And it seems that the community would generally benefit from a formal explanation of What is asynchronism after all? Despite havin...
asked by 19.04.2016 / 19:42
3
answers

What is the solution for asynchronous processes in PHP?

In PHP, often in the middle of an operation, I need to send an email, make a webservice call, or log a log, and these can sometimes take a long time to process, but I do not have to wait for them end a request. I've been looking around, and I...
asked by 26.05.2017 / 16:04
3
answers

When to use asynchronous or synchronous methods?

When should I use asynchronous or synchronous methods in controllers (Index, search, delete, create) ASP.NET MVC applications? Can I lose performance? In which situations should I use one or the other, could you give examples? If I have...
asked by 03.05.2017 / 03:33
2
answers

What is a state machine?

I'm doing a site tour, researching on asynchronism, threads, parallelism, and the like. When I found this answer , I noticed that the author makes a citation regarding state machines . I did not quite understand what a state machine woul...
asked by 29.05.2017 / 14:12