Nevermind, I figured it out. I thought the error was on the input to fb but it
turns out the compiler was complaining about the resulting value assigned to
result. Changing fc to the following fixes it.
proc fc(i: int): Future[string] {.async.} =
let a = await fa(i)
result = await fb(a)
Run
- Confused with async compile error hiteshjasani
- Re: Confused with async compile error hiteshjasani
