Skip to content

Commit

Permalink
Copied most blocking socket operations to the net module.
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 committed Mar 22, 2014
1 parent 5bf45d9 commit 2ce9f1c
Show file tree
Hide file tree
Showing 4 changed files with 1,020 additions and 33 deletions.
4 changes: 2 additions & 2 deletions lib/pure/asyncio2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import os, oids, tables, strutils, macros

import sockets2, net
import sockets2

## Asyncio2
## --------
Expand Down Expand Up @@ -772,7 +772,7 @@ proc processBody(node, retFutureSym: PNimrodNode): PNimrodNode {.compileTime.} =
else: discard
of nnkDiscardStmt:
# discard await x
if node[0][0].ident == !"await":
if node[0][0].kind == nnkIdent and node[0][0].ident == !"await":
var dummy = newNimNode(nnkStmtList)
createVar("futureDiscard_" & $toStrLit(node[0][1]), node[0][1], dummy)
else: discard
Expand Down
Loading

0 comments on commit 2ce9f1c

Please sign in to comment.