summary refs log tree commit diff stats
path: root/compiler/nimsuggest
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2015-04-24 17:56:04 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2015-04-24 17:56:04 +0100
commit72b4912c84b16644657f94e54105739cba4b2457 (patch)
tree356a84e44703d54cb0215b84b00a9b769dd3dbc4 /compiler/nimsuggest
parent62e1b3e2e30906fb2176c018468138731d073a27 (diff)
downloadNim-72b4912c84b16644657f94e54105739cba4b2457.tar.gz
Introduce FutureVar[T] to make recvLineInto safer.
FutureVar[T] is a new distinct Future type which is designed to be used
for situations where the highest performance is needed. It reduces the
number of Future allocations needed. It acts as a replacement for
'var' params in async procs.

This commit modifies @def-'s PR in order to make it safer. The recvLineInto
procedure has been modified to take a ``FutureVar[string]`` param instead of a
``ptr string`` param.
Diffstat (limited to 'compiler/nimsuggest')
0 files changed, 0 insertions, 0 deletions