Thanks @Hlaaftana but, unfortunately it doesn't work!
    
    
    /home/hdias/dev/tmp/test.nim(32, 25) template/generic instantiation of 
`async` from here
    /home/hdias/dev/test.nim(43, 10) template/generic instantiation of 
`forStream` from here
    /home/hdias/dev/tmp/test.nim(26, 24) template/generic instantiation of 
`await` from here
    /usr/local/programs/x86_64/nim-1.0.6/lib/pure/asyncmacro.nim(448, 10) 
Error: Await only available within .async
    
    
    Run

I don't know if 'async' and the 'await' works inside templates!

Reply via email to