From 1b7cf0e3f364fa768eb17e3a7714fd30effd43db Mon Sep 17 00:00:00 2001 From: def Date: Sun, 26 Apr 2015 17:06:41 +0200 Subject: Add warning about recvLineInto being bound to change --- lib/pure/asyncnet.nim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/pure/asyncnet.nim b/lib/pure/asyncnet.nim index a79f30ab3..aadbde824 100644 --- a/lib/pure/asyncnet.nim +++ b/lib/pure/asyncnet.nim @@ -325,6 +325,9 @@ proc recvLineInto*(socket: AsyncSocket, resString: ptr string, ## ## **Warning**: ``recvLineInto`` on unbuffered sockets assumes that the ## protocol uses ``\r\L`` to delimit a new line. + ## + ## **Warning**: ``recvLineInto`` currently uses a raw pointer to a string for + ## performance reasons. This will likely change soon to use FutureVars. assert SocketFlag.Peek notin flags ## TODO: result = newFuture[void]("asyncnet.recvLineInto") -- cgit 1.4.1-2-gfad0