Asynchronous programming is simply allowing some portions of code to be executed on separate threads. It makes your applications perform better, be more responsive, and use the resources of the system they are running on to the fullest extent.
6
votes
1answer
37 views
Perl async tasks for “any” code, no matter what it is?
I've been writing a "checker" system that performs various "checks" on various services, systems, databases, files, etc. A "check" is generic in nature and can be anything. All checks are reported ...
0
votes
1answer
8 views
Spring Asynchronous WS
I'm new for programmaing web service, please can you give me some exemples of Spring Asynchronous Web Service using pool and future
1
vote
1answer
26 views
How to make 2 asychronous API calls execute one after another , javascript
I am using facebooks javascript API to import the albums and photos from a facebook page.
First i import the albums with an API call.
Then i import the photos of every album into arrays with another ...
1
vote
0answers
5 views
Gradle issue - Trying to do some JAX-RS 2 with Jetty and Resteasy - ClassNotFoundException: javax.servlet.AsyncListener
I use:
Jetty 8.1.11
Resteasy 3.0.1.Final
Gradle 1.6 - jettyRun task - Running on windows 7 -> This is the culprit
Update: If I deploy my war directly in Jetty, it works fine, but if I start with ...
0
votes
0answers
18 views
Is there a significant difference between making a [IsOneWay=true] WCF service async and calling the sync method using a Task on the client?
If I have a service defined so:
[ServiceContract(SessionMode = SessionMode.NotAllowed)]
public interface IMyService
{
[OperationContract(IsOneWay = true)]
[ReceiveContextEnabled(ManualControl ...
0
votes
1answer
13 views
Asynchronous xmlHttpRequest using JavaScript httpClient
I have made a http client in JavaScript, its working fine for single non-asynchronous and asynchronous GET and POST calls, but if i call makeRequest() multiple times, the response is the same for each ...
0
votes
0answers
8 views
Using asynchronous methods inside synchronous controllers in MVC 4
Let's say I have a synchronous action on an MVC controller, but I need to use an async method inside it. Whenever I use Task.Result, it simply hangs forever and break the flow.
I suspect it's ...
0
votes
1answer
23 views
Scheduling of I/O-bound operations in .NET
If I'm on a thread which doesn't need to be responsive, and for which continued execution relies on the result of an I/O bound call (HttpClient request), is there any value in implementing the call ...
0
votes
0answers
20 views
When to pay attention regarding asynchronous process in JavaScript [on hold]
What are the scenarios were a new JavaScript programmer should beware of implementing callback functions to keep the code running in a procedural manner? (Like when waiting for server response in AJAX ...
1
vote
2answers
47 views
Distinguishing between asynchronous method callbacks in C#
Let's assume I have an async method, which notifies me via an event when a certain change happens. Currently I'm able to assign the event's information to a static variable like this:
static ...
0
votes
0answers
9 views
How to launch asynchronous task while updatepanel with gridview is refreshing in usercontrol?
I built a user control.
Inside I put an updatepanel and an objectdatasource and a button.
Inside the updatepanel I put a timer and a gridview.
What I want my code to do is :
1-the updatepanel refresh ...
0
votes
3answers
24 views
How to check the end of an asynchronous process from a web browser ?
i have a php/jQuery web site which provides the way to launch processes on the server in asynchronous mode.
When I click on a specific link, the server launches a process through php and returns a ...
0
votes
1answer
56 views
Why isn't my Handler working?
When I go to run the app everything seems fine but when I press the Start Button it doesnt display Hello I even tried to set text before the thread and it still didnt work. Why would this be ...
0
votes
0answers
6 views
Invoking timed tasks in asynchronous Jax-RS requests
I've joined a project that uses Jax-RS (and originally there was quite a bit of Spring-based Controller code in there too, but all URL handlers use Jax-RS now). Now we want to be able to fill in a ...
3
votes
0answers
90 views
C++11 async segmentation fault
Can someone explain what I am doing wrong here:
#include <future>
#include <iostream>
int main() {
std::future<int> result( std::async([](int m) { return m+1;}, 2));
...