Questions tagged as 'assincronismo'

2
answers

Parallelism in Sql Server with C #

I'm implementing async methods in C # and would like to know how to proceed when I get into Sql. When I open a connection to the sql server, does it allow me to parallelize only one connection? That is, can I send several queries to him that...
asked by 21.08.2017 / 18:09
1
answer

Asynchronous method blocking Queue

I'm using MVC and then I've addressed asynchronous methods for Actions in Controllers in order not to block access to other pages of the site while a long-running process is taking place. However, I have had problems in the following s...
asked by 06.05.2017 / 05:32
0
answers

When using async do not need to use callback?

I have the following function in nodeJs v10.6: #func-1 module.exports.funcOne = (event, context, callback) => { callback(null, { message: 'funcOne', event }); }; #func-2 module.exports.funcTwo = async (event, context) => { console...
asked by 03.08.2018 / 21:27
0
answers

Python and Asyncio

I'm reading the documentation from the Python asyncio library and I'm finding it difficult to differentiate some terms that are often used, they are: Task, Future. Both terms are used in similar ways give my question what the difference between...
asked by 16.04.2018 / 07:46
1
answer

PK error during process asynchronous process

Personally I came across a situation where I solved the problem but I would like to know more about how UPDLOCK works. I had a situation that was basically like this within a procedure: SET @MAX = SELECT MAX(NRDOC) FROM TABLE1 WITH(NOLOCK) SET...
asked by 30.03.2018 / 14:31
1
answer

How to check if file exists (asynchronous)

In Node.JS, I use this method of fs to check if a file exists: const fs = require('fs'); // [...] if (fs.existsSync(path)) { /** Do stuff. */ } The question is: how can I do the same thing, but in an asynchronous way? Note: I use...
asked by 21.03.2018 / 16:35
1
answer

Slowness with FluentNHibernate

I'm using FluentNHibernate in a simple product registration application. The first time I run something that accesses the database (product query screen or a product registration), the site will load for a long time. But after this first load...
asked by 10.05.2016 / 18:36
0
answers

Detect When User Disconnects TCP Socket Asynchronous C #

I'm developing an Asynchronous TCP server in C #, but not how to make my system detect that the user has disconnected or been logged out for some reason and run a procedure for removing it from the user list. My User object is currently like thi...
asked by 18.09.2015 / 03:53
1
answer

Socket Asynchronous C # receiving more than one message at a time

I'm developing a C # Dll that works with Asynchronous TCP Socket for developing some tools I'm working on, the problem appears when the client receives many messages in a short period, in which case the messages are in JSON, so the server sends...
asked by 16.09.2015 / 15:34
0
answers

Flush in asynchronous servlet does not work

I am studying for web certification, and I came across a problem when trying to make a chat using long pooling, but precisely in the article: link I noticed that my client did not get the writing, so I wrote a basic example to see if the...
asked by 07.04.2015 / 05:03