Questions tagged as 'assincronismo'

1
answer

How does ES7 async / await work?

ES7 allows you to use a new syntax to work with Promises known as async / await functions. How can I use these functions and how are they compared to functions that use Promises to process data sequences and in parallel?     
asked by 24.08.2016 / 00:41
3
answers

JavaScript - Thread, Asynchronous, Ticks

Situation Studying about Thread , I understood that they are lines of execution within a process. Studying about Assincronismo em javascript , I understand that it does not support multiple Thread , but has loop de ev...
asked by 12.11.2015 / 13:55
1
answer

Problems Xamarin method Asynchronous

In the event of a button of my APP had the following code it worked running in the android emulator, but when I passed the app to the cell phone generates a message the app stopped. Button buttonPessoasNecessita = FindViewById<Butto...
asked by 05.12.2015 / 19:14
1
answer

How to transform an asynchronous function into a synchronous one?

I have an asynchronous function and would like it to become synchronous, as being asynchronous it is sending the data to the client before even completing the necessary steps, it follows code: imap.once('ready', function () { openInbox(fun...
asked by 30.08.2017 / 14:35
1
answer

What are the pros and cons of the TaskListObject implementation on ListObject

What are the advantages between the two implementations below. Both return a list with several products (more than 1k): public Task<List<Product>> GetAllProductsAsync() { var query = Products.ToList(); return Task.FromResu...
asked by 01.08.2015 / 16:26
1
answer

Are there differences between the terms Thread, Multithread, Async, and Await?

I asked this question here in Stack Ooverflow: What is the solution for asynchronous processes in PHP? I did this because I wanted to, in the middle of a process execution, want to have a certain call of a function running on the other p...
asked by 29.05.2017 / 13:35
1
answer

How to write an asynchronous method?

I have the following method: public void Contar() { int numero = 1; for (int i = 0; i < 100000; i++) { numero *= i } return numero } Assuming that the Contar() method takes so long to crash the UI of...
asked by 11.07.2017 / 04:09
1
answer

Two-way asynchronous communication in layers

I have system in Asp.Net MVC (.Net 4.5) divided into layers: Thatsaid,let'sgetdowntotheproblem...I'mtryingtocreateascreentosendemailsasynchronously(3emailsatthesametime,forexample),buttherewillbeabuttontocancelthesending,whichforcesmetoinfor...
asked by 30.06.2017 / 15:25
2
answers

What is the difference between async Task and void?

I use async Task with await when I need my code to wait for this task to complete until I run another process. In the case of void methods, without async-await , does my code also not "wait" to execute another proce...
asked by 27.07.2017 / 18:30
1
answer

What is the usefulness of Task.Yield?

The documentation for this method says:    Task Method. Yield () - adapted from English   Creates a startling task that returns asynchronously to the current context when awaited . I read the source code for it and got lost even...
asked by 24.09.2017 / 12:26