I'm currently working on a Nim application that interacts with JavaScript's 
async APIs using the asyncjs module. My goal is to wait for a specific async 
event to occur before proceeding with further code execution. The event im 
waiting for is connect to an object named “app”:
    
    
    app.on(“ready”) ( => {
          console.log(“ready!”)
    })
    
    
    Run

Here's a simplified code snippet to illustrate my situation:
    
    
    proc isReady() {.async.} =
      console.log("App is ready!")
    
    
    Run

I’m stuck on how i am suppose to listen for this event in nim, thank you in 
advance!

Reply via email to