Add warning about recvLineInto being bound to change

This commit is contained in:
def 2015-04-26 17:06:41 +02:00
commit 1b7cf0e3f3

View file

@ -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")