Skip to main content

All Questions

Tagged with or
0 votes
0 answers
35 views

This is not a duplicate to this question since it discusses rejecting promises. This is about errors that are thrown. It is also worth mentioning that I can't modify the behavior of the mpv....
Omaro_IB's user avatar
  • 435
0 votes
1 answer
199 views

I am newbie to Javascript and been reading the David's Flanagan Guide to have general overview. This code snippet made me confused. I could not realise how the Promise in loop is 'dequeued' before ...
Harpy Cutie's user avatar
0 votes
1 answer
215 views

function debouncePromise<TParams extends Array<unknown>, TRes>( fn: (a: TParams) => Promise<TRes>, time: number, ) { let timerId: ReturnType<typeof setTimeout> | ...
tem's user avatar
  • 43
0 votes
0 answers
63 views

I have written a routine for queueing a set of http requests so that they happen in sequence instead of concurrently. I am using this async library: https://caolan.github.io/async/v3/. This is ...
Matt Pennington's user avatar
-1 votes
1 answer
74 views

I am getting error of** "News.js:16 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'state')"** when ever i am clicking on next button. error occur in URL of ...
Rafia Khurshid's user avatar
0 votes
2 answers
85 views

const p1 = new Promise((resolve,reject) => { setTimeout(()=>{ resolve("xxx"); }, 5000) }); const p2 = new Promise((resolve,reject) => { setTimeout(()=>{ resolve("xx"); }, ...
Rocko's user avatar
  • 47
1 vote
1 answer
38 views

I am currently working on the capstone for my course, but I have to use multiple async functions. I need to use AsyncStorage, SQLite storage, and fetching from a REST API. The issue I am encountering ...
Abraham Guerrero's user avatar
0 votes
2 answers
220 views

So I want to do some web scraping, using AppleScript to run javascript code on a webpage. I have the following code: (edited to remove proprietary data) function inputPunch(date_string) { // ...
Dyskord's user avatar
  • 397
0 votes
1 answer
103 views

I have a huge form with all kind of inputs that I need to do data treatment and then register directly on multiples spreadsheets. The first part of getting the values and sending it to the ...
David Paiva's user avatar
0 votes
0 answers
17 views

I have an User context provider where I want to store functions that validate and refresh his JWT token before every request. Here is template of my code const UserContext = createContext({}) const ...
Marlboro_Red's user avatar
1 vote
2 answers
2k views

I want to verify the user credentials before any page of my site load, so I put an script in the top of each of my HTML document. But this script in particularly has Async functions (because it sends ...
C410lol's user avatar
  • 11
0 votes
0 answers
32 views

async.eachSeries([1,2,3], async(item, callback) => { //await delay(6000); console.log(item); callback(null); }, function(done) { if(done == null){ } }); ...
Pankaj Gupta's user avatar
1 vote
0 answers
111 views

I have a folder with 4 files with CSS styles. Using Node.js modules tried to create a new file 'bundle.css' and append content of these 4 files with style (css). But the code instead of styles, return:...
codingForCode's user avatar
0 votes
1 answer
173 views

I am using NodeJS 18 version, and I am trying to paginate the dynamo DB results using the async function, but it is not giving me any results. My dynamo DB table has the data. I am using the dynamo db ...
Aravindan vaithialingam's user avatar
0 votes
1 answer
1k views

I am trying to implement sorting algorithms and build react app to display how unsorted array is changing with each iteration. To make it visible, app has to stop for some time after every iteration ...
Marlboro_Red's user avatar

15 30 50 per page
1
2 3 4 5
80