nim-ethers/ethers/providers/jsonrpc/looping.nim

7 lines
109 B
Nim

template untilCancelled*(body) =
try:
while true:
body
except CancelledError as e:
raise e