asyncmacro.nim(130, 3) Error: 'yield' only allowed in an iterator

2021-10-25 Thread tzzza
Thanx guys, you solved my problem. I am new to all of this and have much to learn.

asyncmacro.nim(130, 3) Error: 'yield' only allowed in an iterator

2021-10-23 Thread tzzza
Tried to make this example code: import asyncdispatch, ws var wsc = await newWebSocket("ws://ws.ifelse.io") echo await wsc.receiveStrPacket() await wsc.send("Hi, how are you?") echo await wsc.receiveStrPacket() wsc.close() Run got: