mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-04 10:54:42 +00:00
async: You can use -d:nimAsyncDebug to see what the .async macro expands to
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user