Category "asynchronous"

How to limit concurrency with Python asyncio?

Let's assume we have a bunch of links to download and each of the link may take a different amount of time to download. And I'm allowed to download using utmost

Unsubscribe from watchPositionAsync with useEffect return function

Using react native with expo-location for a mobile app, I would like to unsubscribe from Location.watchPositionAsync which returns a promise with a remove() met

Use Async/Await with Axios in React.js

Following How to use async/await with axios in react I am trying to make a simple get request to my server using Async/Await in a React.js App. The server l

Polling until getting specific result?

I am currently trying to add polling to my application using this link https://davidwalsh.name/javascript-polling (and many others). I have access to the follo

When to use std::launch::deferred?

Lines from Anthony William book: std::launch::deferred indicates that the function call is to be deferred until either wait() or get() is called on the fu

How to wait for a JavaScript Promise to resolve before resuming function?

I'm doing some unit testing. The test framework loads a page into an iFrame and then runs assertions against that page. Before each test begins, I create a Pro

Running WebAssembly on Google Apps Script

I am attempting to run WebAssembly on the new V8 Google Apps Script runtime, and it appears to be supported, however it seems that async functions are terminate

Any java async tracing framework?

I'd like to trace my async application with some key checkpoint. Is there any popular framework I can use? For example, I may choose to use vert.x or any other

Problem with concatenated messages in JSMPP

I have a problem sending concatenated messages to my SMSC, here, I will do my best to describe the problem. When sending concatenated messages, my SMSC waits to

Parallelizing multiple long-running tasks with async/await

I have a helper method returns IEnumerable<string>. As the collection grows, it's slowing down dramatically. My current approach is to do essentially the

Does async programming mean multi-threading?

lets talk about JavaScript code which has setInterval methods every 2 sec. I also have a onblur animation event for some control. In a case where onblur occurs

Dart: How to return Future<void>

How can I return Future<void> ? Future<void> deleteAll(List stuff){ stuff.forEach( s => delete(s)); //How do I return Future<void

jasmine: Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL

I have an angular service called requestNotificationChannel: app.factory("requestNotificationChannel", function($rootScope) { var _DELETE_MESSAGE_ = "_DEL

python - Difference of typing with AsyncGenerator or AsyncIterator?

I make creating a discord asynchronous library that is fully typed. I have a method that create objects from a aiohttp get requests such as the following exampl

What's the best way to cancel an asynchronous WCF request?

(Assuming a WCF method called "MyFunction") Currently, to support canceling a WCF request, I'm using the BeginMyFunction/EndMyFunction methods generated by svc

Asynchronous processing with fallback java

I am working on an java application that will makes calls to a web service, I dont want to incur additional latency while making these calls hence I am planning

postgres LISTEN/NOTIFY rails

Ryan Bates mentions the LISTEN/NOTIFY functionality of Postgres when discussing push notifications in this episode, but I haven't been able to find any hint on