Something like this should work
    
    
    import asyncjs
    
    
    proc main() {.async.} =
      let x = await apiFunction()
    
    
    main()
    
    Run

Reply via email to