diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2015-04-24 17:56:04 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2015-04-24 17:56:04 +0100 |
commit | 72b4912c84b16644657f94e54105739cba4b2457 (patch) | |
tree | 356a84e44703d54cb0215b84b00a9b769dd3dbc4 /compiler/nimsuggest | |
parent | 62e1b3e2e30906fb2176c018468138731d073a27 (diff) | |
download | Nim-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