Questions tagged as 'async'

1
answer

Async method returning a Liststring how to use?

I have a method called consulta_usuario_email , which is responsible for searching the registered users table, the emails of the users of a certain department: public async Task<List<string>> consulta_usuario_email(string de...
asked by 05.07.2017 / 17:22
2
answers

Asynchronous execution problem on node server with Express, MySQL and Socket.IO

I'm developing a project on Node.JS with Express, MySQL and Socket.IO. When the user opens the main page provided by the server, the request must cause data to be read from the database and sent to the client for it to be listed on the page....
asked by 12.08.2015 / 16:27
1
answer

Java - Chat async

I want to implement a java chat, which works asynchronously, and wanted to know the best architecture to do that. I was able to do a public chat using sockets (Netty), but I came up with the following problem: The server sends the message...
asked by 03.08.2015 / 00:18
1
answer

How to make an ajax request that returns a text in html?

Assuming the link making the request is: <%= link_to 'New Classroom', new_classroom_path,class: :remote_link, remote: true %> And that the return processing of it is: $('.remote_link').bind('ajax:success',function(e, data, status, x...
asked by 05.05.2015 / 01:19
1
answer

SemaphoreSlim locking method

I'm using SemaphoreSlim to "lock" some of my Web-API's methods until it worked correctly however there are times when these same methods get stuck completely, by postman when I run it gets a loading and after some time returns the error. Foll...
asked by 30.05.2018 / 04:27
1
answer

Auto reconnect reusing an async socket connection

How do I have my socket reconnect by itself when the connection is lost? Preferably reusing the same connection.     
asked by 14.12.2015 / 01:59
1
answer

How to display two messages using Windows phone MessageDilalog 8.1

How do I print two messages using MessageDialog of Windows Phone 8.1? using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; usi...
asked by 15.09.2015 / 03:13
1
answer

Projects with synchronous and asynchronous APIs

I'm developing a small project and I have two entities for now: Product and Customer The product API is asynchronous (with Task and async) and the client API is synchronous. I wonder if there is any problem in using these two approaches...
asked by 07.08.2018 / 13:46
1
answer

Attribute Async and Defer Javascript - Async pause rendering?

I was reading again, about async and defer. I noticed that Async, although loading the script asynchronously, after loading, the HTML is paused to execute the script. Defer would work as an Async, but script execution is done after HTML rende...
asked by 04.06.2018 / 00:54
2
answers

How to check if there are async processes running

Does anyone know of any way to check if a Async process is running? For example, I would like to do a check when the user closes the system, and do not close until all Async processes are complete. async public void EvokeMetod...
asked by 09.08.2017 / 20:04