Category "asynchronous"

How would I monitor and restart tasks that throw exceptions in C#?

Let's say I have a program that instantiates three tasks that run indefinitely. These tasks are intended to run in parallel. However, lets say these tasks are k

Node.js: can you use asynchronous functions from within streams?

Consider the following: var asyncFunction = function(data, callback) { doAsyncyThing(function(data){ // do some stuff return callback(err) }) } fs.

How to wait in loop till the series of API calls one inside another is completed in Javascript

I am stuck in a situation in typescript. I have a forEach loop in which an API call method is executed methodOne(); inside this method, another API call to meth

Get rid of uncaught errors when resolving a promise

I have the following method export abstract class BaseCalculator { /** * Compute the promise parameter. * @param name name of the parameter. * @param

What is the difference between using and await using? And how can I decide which one to use?

I've noticed that in some case, Visual Studio recommends to do this await using var disposable = new Disposable(); // Do something Instead of this using var di

Why do we need middleware for async flow in Redux?

According to the docs, "Without middleware, Redux store only supports synchronous data flow". I don't understand why this is the case. Why can't the container c

Using explicit wait with Async mode in WebDriverIO

If I am using the async mode in WebDriver IO, Given the following test case: search the user name input and fill it with the user name 1 it("Explicit Wait Exa

How to read file with async/await properly?

I cannot figure out how async/await works. I slightly understand it but I can't make it work. function loadMonoCounter() { fs.readFileSync("monolitic.txt",

delay NgModule declaration with async import module

I would like to dynamically import a third-party module and check it. Then declaration in NgModule depends on it exist or not(true/false). Something like my cod

How do I keep my Async method thread safe?

I need to write a method in my Windows Universal App to write to the SD card. How can I ensure two threads do not try to write to the same file at the same tim

The asyncio.sleep is "waking up" too early

I am writing a telegram bot, which has to work for numerous users simultaneously. The bot has to send messages at random time during a certain time frame. When

Android RecyclerView only contain one item after adding items got from asynchronous retrofit calls

I have a recycler view for image display with a simple adapter. public class ImageListAdapter extends RecyclerView.Adapter<ImageListAdapter.SingleItemRowHold

async/await always returns promise

I'm trying async/await functionality. I have such code imitating a request: const getJSON = async () => { const request = () => new Promise((resolve, r

.Error CS1061 'Task<IEnumerable>' does not contain a definition for 'Where' and no accessible extension method 'Where'

My generic repository is as follows ( I have similar in synchronious and it works) public virtual async Task<IEnumerable<TEntity>> GetAsyn( Expr

Asynchronous execution of a function App Script

I've been digging around, and I'm not able to find references or documentation on how I can use Asynchronous Functions in Google App Script, I found that people

Swift Combine - Accessing separate lists of publishers

I have two lists of URLs that return some links to images. The lists are passed into a future like static func loadRecentEpisodeImagesFuture(request: [URL]) -&g

Rest API asyncio gets stuck while running

Can anyone help me with Rest API asynchronous? I used Asyncio for 4 requests to FTX server. If I run the code, it prints 'balance','position','chart1','chart2'

If async-await doesn't create any additional threads, then how does it make applications responsive?

Time and time again, I see it said that using async-await doesn't create any additional threads. That doesn't make sense because the only ways that a computer c

how to make oracle UTL_HTTP.request asynchronous?

I have a job that runs periodically , and I am not interested in the response ?? is there anyway to make the calling convention , request without waiting for t

Debugging ajax flow

I am really confused on a program that I made. A few days ago, it was working just fine, but now I am having problems with initializing it. I think I've figured