Questions tagged as 'async'

1
answer

reload effects of design material

I have a site with design material, but when I update the page html with XHR the new content loses the javascript effect as I could do to reload the mdl? To make the change between the view, I use two functions, in the first step the file url...
asked by 06.06.2018 / 22:57
1
answer

Does the keyword "async" really make the method asynchronous?

I was watching a video (at 31:11 minutes) and it says that async does not actually do this asynchronous, is more a "tip". Since I was in English and I am not fully advanced, the understanding was half empty. To be able to enter the a...
asked by 27.11.2016 / 23:55
1
answer

Primary Key without Self-Increment for CPF in Entity Framework

The scenario is as follows: I have an Employee class. The primary key of it should be the employee's CPF that the user types. The problem: key follows a default auto increment, not going according to the entered CPF.    EX: I...
asked by 31.03.2016 / 01:41
1
answer

Correct use of async and await in Asp.Net

I am creating an asynchronous method for sending Emails from the opening or changing of the object, but when calling the method of sending mail I have to put await in front and the return of the method has to be async Task, do this in the contro...
asked by 03.09.2015 / 20:24
1
answer

Using async with .NET Core and nHibernate

In the .NET Core I know that we have async and await to request async . So far so good, but many frameworks on the market are creating methods with the MetodoAsync() signature and have the method without being async M...
asked by 09.10.2017 / 13:33
1
answer

How to create an asynchronous method that is cancelable?

How to create an asynchronous method that is cancelable? In this context, the DoFoo() method does things that can not be simply stopped, such as reading and writing files, and by canceling, I have to wait for these I / O operations to...
asked by 28.07.2017 / 15:41
1
answer

How to develop an asynchronous mechanism to test pings?

I'm having a slowness problem with a transaction that pings to see if certain IP's are accessible. It turns out that this transaction tests more than 20 different IP's, which makes the total transaction time is 2 minutes. To decrease the total t...
asked by 27.08.2014 / 21:52
1
answer

Capturing value of an asynchronous function in NodeJS

Hello, I have a problem that I have not found a solution yet. I have an array of values, in which I make a scan and for each value execute function that makes a request to dynamodb and returns a JSON. This request is asynchronous. With...
asked by 27.01.2015 / 23:01
1
answer

How does the async attribute of Javascript work? [duplicate]

I was reading about the async attribute, which is used in the <script> tag, and I was curious and dubious about some things. According to the W3School :    A script that will be run asynchronously as soon as it is av...
asked by 26.01.2015 / 12:44
1
answer

Loop asynchronous calls and process data at the end of all executions

I have a method of a web service that receives the IP of a server as a parameter and returns a DataSet . Multiple servers must be queried by this web service, A List<string> contains the list of IPs. A loop executes the meth...
asked by 26.02.2014 / 15:57