From c30e9b9b75272c0e42482ae8ae10dc4f3ce9e77b Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 30 Jun 2016 18:40:46 +0200 Subject: [PATCH] async: You can use -d:nimAsyncDebug to see what the .async macro expands to --- lib/pure/asyncdispatch.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim index be6522c363..b61200c727 100644 --- a/lib/pure/asyncdispatch.nim +++ b/lib/pure/asyncdispatch.nim @@ -1931,6 +1931,8 @@ macro async*(prc: stmt): stmt {.immediate.} = result.add asyncSingleProc(oneProc) else: result = asyncSingleProc(prc) + when defined(nimAsyncDebug): + echo repr result proc recvLine*(socket: AsyncFD): Future[string] {.async.} = ## Reads a line of data from ``socket``. Returned future will complete once