discard """ file: "tasyncawait.nim" output: "5000" """ import asyncdispatch, nativesockets, net, strutils, os var msgCount = 0 const swarmSize = 50 messagesToSend = 100 var clientCount = 0 proc sendMessages(client: AsyncFD) {.async.} = for i in 0 ..