Fixes problems with async docs.
This commit is contained in:
parent
a1a8925692
commit
1e1a583903
1 changed files with 6 additions and 5 deletions
|
|
@ -1067,12 +1067,13 @@ macro async*(n: stmt): stmt {.immediate.} =
|
||||||
|
|
||||||
# ---- Async macro end
|
# ---- Async macro end
|
||||||
|
|
||||||
proc send*(socket: PAsyncSocket, text: string) {.async.} =
|
when defined(nimdoc):
|
||||||
## Sends ``text`` to ``socket`` asynchronously.
|
proc send*(socket: PAsyncSocket, text: string) {.async.} =
|
||||||
|
## Sends ``text`` to ``socket`` asynchronously.
|
||||||
|
|
||||||
proc accept*(socket: PAsyncSocket): PAsyncSocket {.async.} =
|
proc accept*(socket: PAsyncSocket): PAsyncSocket {.async.} =
|
||||||
## Accepts a client connecting to a server socket asynchronously.
|
## Accepts a client connecting to a server socket asynchronously.
|
||||||
## Returns that client.
|
## Returns that client.
|
||||||
|
|
||||||
when isMainModule:
|
when isMainModule:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue