Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 630 results for
await
- Page 1
500 Internal Server Error: Need to Hire Developers in USA
Programming
3 Weeks Ago
by YashSmith
….js. app.post('/submit', async (req, res) => { let data =
await
processData(); // Possible async issue? res.send(data); }); Could it be…
Re: Async and await ... How to be asynchronous?
Programming
Web Development
2 Years Ago
by Naor
… { setTimeout(async function () { const date = new Date().toLocaleString();
await
TEST.put(`${uuid}-2-after`, `${date}`); resolve(true); }, timer); …the waitUntil run const date = new Date().toLocaleString();
await
TEST.put(`${uuid}-1-before`, `${date}`); // …
Async and await ... How to be asynchronous?
Programming
Web Development
2 Years Ago
by Dani
… = request.headers.get('user-agent') let response =
await
fetch(request) if (userAgent) { // If Googlebot,… { // Search html let clone =
await
response.clone() let html =
await
clone.text() let indexableStatus = html.includes('&…
Async/await in node.js MySql and array - a total struggle
Programming
Web Development
5 Years Ago
by bprosic
I can't accomplish async and
await
in order to populate array and then show the end … = []; var run = async() => { const data =
await
readDb("tblcategories", someArray); const data =
await
readDb("tblsubcat", someArray); console.log…
Re: Async/await in node.js MySql and array - a total struggle
Programming
Web Development
5 Years Ago
by bprosic
… showAllFilters(qry, arrayParams) { // params is array[] let result; try { result =
await
db.query(qry, arrayParams); } catch (error) { console.log("showAllFilters…
What is callback pattern and it's relation with promises and async/await ?
Programming
Web Development
1 Year Ago
by jayashree10
Explain the concept of the "callback pattern" in JavaScript and how it has evolved with the introduction of promises and async/
await
.
Re: Async/await in node.js MySql and array - a total struggle
Programming
Web Development
5 Years Ago
by sagar_14
Your code is running right i did not show any error on this
Re: What is callback pattern and it's relation with promises and async/await ?
Programming
Web Development
1 Year Ago
by rproffitt
Is this some homework you need answered?
Re: What is callback pattern and it's relation with promises and async/await ?
Programming
Web Development
1 Year Ago
by rproffitt
I checked this question out with a google query and there's plenty to read and even YouTubes. I'd start there.
Can someone please convert this C# code into python? Or tell me how to?
Hardware and Software
macOS
3 Years Ago
by Yumensh
…= _service.GetCustomReactions(ctx.Guild?.Id); if (customReactions == null || !customReactions.Any()) {
await
ReplyErrorLocalizedAsync("no_found").ConfigureAwait(false); } else { var ordered = customReactions…
Socket io problem with angular & node js
Programming
Web Development
4 Years Ago
by Ivan_7
…} if (!c) { const createRoom =
await
Chat.create({ username: data.username, room…} } }) const sendMessageTime =
await
Chat.findOneAndUpdate({room:room},{ last_message:Date…
Java Concurrency - use CyclicBarrier to synchronize tasks across threads
Programming
Software Development
3 Years Ago
by dimitrilc
… the number of threads calling `
await
()` is equal to the number… { buildFirstFloorApt(); //20 barrier1.
await
(); //21 buildSecondFloorApt();//22 barrier2.
await
(); //23 buildThirdFloorApt(); //24 … it needs to call `
await
()` after finishing building an …
Using Webservice in Metro Style App
Programming
Software Development
12 Years Ago
by rahul_njain
…\TravelAdaptorMetro\AllProductPage.xaml.cs 47 51 TravelAdaptorMetro *** GetTravelAdaptorProductsResponse r =
await
ws.GetTravelAdaptorProductsAsync("India", "Pakistan");*** Error 2… The '
await
' operator can only be used within an async method. Consider…
How to the async() coroutine builder in Kotlin
Programming
Software Development
3 Years Ago
by dimitrilc
…quot;result" //5 } val result: String = deferred.
await
() //6 println(result) //7 } The code above is…"result" //5 } val result: String = deferred.
await
() //6 println(result) //7 } @OptIn(ExperimentalCoroutinesApi::class) //8…
windows phone
Programming
Mobile Development
10 Years Ago
by man.chester.581
….MessageDialog("found " + contacts.Count + "contacts :D");
await
dlg.ShowAsync(); ContactsListView.ItemsSource = contacts; } and this xaml code <…
Re: Using Webservice in Metro Style App
Programming
Software Development
12 Years Ago
by pritaeas
My guess is you have this code in your Main. Main cannot be async. [Async and
Await
](http://nitoprograms.blogspot.nl/2012/02/async-and-
await
.html) is a nice article on this topic.
Re: Need help with nested async API calls
Programming
Web Development
5 Years Ago
by pankaj_patel
…fileInfo); console.log(processedInfo) if(!processedInfo) { return; } const downloadInfo =
await
downloadFile(processedInfo); console.log(downloadInfo) if(!downloadInfo) { return; } return …I wrote about the recepies of async
await
here https://time2hack.com/5-code-…
Concurrency in java
Programming
Software Development
13 Years Ago
by Gazzmonkey
…*/ } Process carProcess (int s, int t); { <
await
((numberOnRoundabout<=6), numberOnRoundabout++)>; /* Wait if roundabout crowded*/…position (which is 2t) */ } do { <
await
(slots[nextPosition]="[.....]"); slots[nextPosition]=slots[currentPosition]; slots[currentPosition…
Re: Concurrency in java
Programming
Software Development
13 Years Ago
by DavidKroukamp
…*/ } Process carProcess (int s, int t); { <
await
((numberOnRoundabout<=6), numberOnRoundabout++)>; /* Wait if roundabout crowded*/…position (which is 2t) */ } do { <
await
(slots[nextPosition]="[.....]"); slots[nextPosition]=slots[currentPosition]; slots[currentPosition…
Windows Phone 8.1 Development
Programming
Mobile Development
10 Years Ago
by avinash_3
…. private async Task CopyDatabase() { bool isDatabaseExisting = false; try { StorageFile storageFile =
await
ApplicationData.Current.LocalFolder.GetFileAsync("people.db"); isDatabaseExisting = true…
Shareing resources.. whats wrong?
Programming
Software Development
15 Years Ago
by stevnlon
…; position || available == Main.CAPACITY-2) { wantingOn.
await
(); } available--; [COLOR="Green"]// passenger gets on…the bus stop.[/COLOR] while(toStop != position) { wantingOff.
await
(); } available++; wantingOn.signal(); } catch (InterruptedException e) …
Re: Concurrency in java
Programming
Software Development
13 Years Ago
by Gazzmonkey
… me I can't successfully change the carProcess class from
await
design to semaphore design which controls the traffic going onto…
Classes/Objects
Programming
Software Development
12 Years Ago
by tboctavan
… expression term 'double' Error 7 Only assignment, call, increment, decrement,
await
, and new object expressions can be used as a statement… Error 8 Only assignment, call, increment, decrement,
await
, and new object expressions can be used as a statement…
DropBox Api Help
Programming
Software Development
7 Years Ago
by Nathan_13
… var dbx = new DropboxClient(Form1.api); var response =
await
dbx.Files.DownloadAsync(folder + "/" + targetfile);…C:\dropboxTest\teasdfst.exe"; using (var stream =
await
response.GetContentAsStreamAsync()) { using (var localfile = new FileStream…
Re: DropBox Api Help
Programming
Software Development
7 Years Ago
by Nathan_13
… { var dbx = new DropboxClient(Form1.api); var response =
await
dbx.Files.DownloadAsync(folder + "/" + targetfile); ulong …@"C:\dropboxTest\teasdfst.exe"; using (var stream =
await
response.GetContentAsStreamAsync()) { using (var localfile = new FileStream(folderName…
How to use middle war to get next request asp.net core 2 ?
Programming
Web Development
5 Years Ago
by ahmed_101
…context.Response.StatusCode = (int)HttpStatusCode.Forbidden;
await
context.Response.WriteAsync("Invalid Token"); … //success token context.Request.EnableRewind();
await
_next.Invoke(context); // how to…
Why my ASP controller is returning a null Model
Programming
Software Development
2 Years Ago
by TimTheCoder
…lt;IActionResult> Index() { return View(
await
_context.Aliens.ToListAsync()); } [HttpGet] public async… if (id == null) { return NotFound(); } var alien=
await
_context.Aliens.SingleOrDefaultAsync(); if(alien== null) { return NotFound(); …
How to convert C# console app to Winforms or other GUI?
Programming
Software Development
2 Years Ago
by babar125
…using (var recognizer = new SpeechRecognizer(config))
await
Recognize(recognizer); } private static async Task Recognize…(SpeechRecognizer recognizer) { var result =
await
recognizer.RecognizeOnceAsync(); if (result.Reason == ResultReason.…
GridView not displaying
Programming
Web Development
2 Years Ago
by John_165
…gt; { const list = []; for (const a in data) { metadata[a] =
await
fetchIpfsJsonFromCid(data[a].cid); metadata[a].image = makeGatewayURL(metadata[a…display the data. These 2 codes removed metadata[a] =
await
fetchIpfsJsonFromCid(data[a].cid); metadata[a].image = makeGatewayURL(metadata…
Cant View Anything To Do With Microsoft!
Hardware and Software
Microsoft Windows
20 Years Ago
by godskitchen2004
… look at all. If you solve this problem I will
await
your reply.
1
2
3
11
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC