How are we doing? Please help us improve Stack Overflow. Take our short survey

Questions tagged [asynchronous]

Asynchronous programming is a strategy for deferring operations with high latency or low priority, usually in an attempt to improve performance, responsiveness, and / or composability of software. Such strategies are usually employed using some combination of event-driven programming and callbacks, and optionally making use of concurrency through coroutines and / or threads.

Filter by
Sorted by
Tagged with
0
votes
1answer
28 views

async.waterfall not acting synchronously

So I'm trying to write a header of a MD5 hash token using crypto then return it back as a response. For some reason, it isn't actually running synchronously. I know JS is an asynchronous language, and ...
-1
votes
1answer
25 views

SyntaxError: await is only valid in async function, discord bot [duplicate]

I'm a beginner at learning anything code. But I'm coding a Discord bot for fun and i'm trying to give it the "clear" message command but, when i run it, it give's me a message saying: ...
-1
votes
0answers
13 views

How to store asyncronus uploaded files on a multistep form?

First I want to say that I am using Laravel 6 and DropezoneJs 5.7. I have a multistep wizard with n steps. On which step from the wizard I have to complete some inputs and also to upload some files. ...
0
votes
0answers
35 views

Calling async method from sync method is ASP .NET web api - issue

I have a ASP .NET web api 2 application, and I'm trying to call asnyc method from sync method and meanwhile I encountered some issues. If I just call the method as a regular method the body after ...
0
votes
0answers
13 views

Improving asyncio understanding [closed]

guys. I try to learn to use asyncio. Pls, give me any tasks about asyncio that could help to to improve my asyncio skills.I don't know for what, but anyway bellow i will leave code that i wrote and i ...
0
votes
0answers
21 views

How to synchronously loop through debounce functions (and wait for result)?

I'm trying to make a function for coping a task and it's subtasks. So I thought I should be calling createNewTask and createNewSubtask on click, using data from the originals. On creating a task and ...
-1
votes
0answers
10 views

Angular form ControlValueAccessor using async validator

I do a validation and even if it returns null (no errors, as in valid) the control still has the status valid set to false. ? Perhaps there is something with that valueChanges triggers/completes ...
0
votes
0answers
10 views

How to read lines from two serial ports asynchronously using SerialPort package for Node?

I have an issues where I am unable to read data incoming from two ports at the same time, line-by-line and in real time (asynchronous IO). I have read somewhere that I need to create two data streams ...
2
votes
0answers
25 views

WaitAndRetryPolicy combined with BulkheadPolicy, prioritizing retries. Is it possible?

I am evaluating the Polly library in terms of features and flexibility, and as part of the evaluation process I am trying to combine the WaitAndRetryPolicy with the BulkheadPolicy policies, to achieve ...
0
votes
1answer
16 views

how to schedule the execution of an async function in python and immediately return

I need to implement a proxy server in python that forwards client requests to some api if it doesn't have the data in it's cache. The requirement for when the data isn't present in the cache, is to ...
1
vote
1answer
60 views

Is it pointless to await inside a new Thread()?

Sample Code: class Program { static void sleepFunc() { int before = Thread.CurrentThread.ManagedThreadId; Thread.Sleep(5000); int after = ...
0
votes
0answers
17 views

(node:30364) UnhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

What can I do to stop getting this error? I've tried playing around editing the code over and over and the error keeps appearing in the console. The data is sent to the database as it is meant to do, ...
0
votes
0answers
39 views

How to assign the return of a promise to a global variable in JavaScript?

So... I have a function that returns a promise and I want to assign the value of a global variable to anything that this promise returns. How do I do that? function a() { // Returns a promise } let ...
0
votes
0answers
13 views

Can I use python - aiohttp inside of a GCP cloud function?

I'm trying to route/divvy up some workload to other cloud functions they all take roughly about the same amount of time, but I have to invoke them synchronously. I tried setting this up, and I ...
0
votes
0answers
11 views

How to asynchronously push data to firestore with python 3.7?

I need to iterate over a list of dictionaries and push data to firestore. The current approach is blocking import firebase_admin from firebase_admin import credentials from firebase_admin import ...

15 30 50 per page
1
2 3 4 5
2832