CodingAsync, Nodejs, Callbacks

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  Chris (CHRISSS)  
 To:  ALL
42625.1 
Ummm... Do we have a head explodey emoji?

Me
0/0
 Reply   Quote More 

 From:  Matt  
 To:  Chris (CHRISSS)     
42625.2 In reply to 42625.1 
Use async/await or Promises.

Although, if you've never used either before your head will probably hurt more than it does right now
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  Matt     
42625.3 In reply to 42625.2 
Yup, that's exactly what I did in the end, and it works rather nicely,. Got a lambda/cognito authentication working in front of a static site.

Luckily I've done a little Nodejs before building a Google home task, but forgotten most of it. I had fun working out why a https post call's results weren't being used and it would reach the end of the script before the result came back. Promise/await fixed that one

Me
0/0
 Reply   Quote More 

Reply to All    
 

1–3

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2020 Project Beehive Forum

Forum Stats