And simpler still ...
    
    
    import std/asyncjs
    import std/jsconsole
    import std/sugar
    
    proc f() : Future[string] {.async.} =
      return "hello"
    
    f().then((s : string) => console.log(s))
    
    
    
    Run
    
    
    $ nim js test.nim
    Error: attempting to call undeclared routine: 'then'
    
    
    Run

Reply via email to