Yuriy Glukhov
58eae1171d
Fixes #5995
2017-06-18 00:57:05 +03:00
Dominik Picheta
b2e649c093
Fixes regression introduced by #5739 . Improves newNimNode proc.
2017-05-17 20:05:21 +01:00
Dominik Picheta
f86aca799c
Remove processing hints for async procs.
2017-05-16 22:50:25 +01:00
Yuriy Glukhov
6599cae281
Async macro fixes ( #5739 )
2017-05-16 22:09:19 +02:00
Dominik Picheta
e0bb65e45c
Fixes the order in which FutureVar and return completions are made.
...
This caused a pretty bad and subtle bug in the asynchttpserver.
As far as I can understand, the fact that the returned future was
being completed first meant that the underlying async procedure
could continue running and thus clean() the FutureVar
and request new data. The control then went back and the
FutureVar was completed again causing an error.
2017-03-27 21:11:48 +02:00
Dominik Picheta
4a7ea8f865
Add support for Async | Sync return types in {.multisync.} macro.
2017-02-11 12:39:37 +01:00
Dominik Picheta
3286480985
Improve error message when a nil future is await'ed.
2017-02-09 23:07:10 +01:00
Ruslan Mustakov
8b10609452
Allow .async pragma on methods ( #5312 )
2017-02-01 08:50:30 +01:00
Andreas Rumpf
76eb20d2d3
deprecated nativesockets.dealloc, use freeAddrInfo instead; fixed stdlib deprecations
2017-01-30 08:50:57 +01:00
Dominik Picheta
927fce4c7f
FutureVar[T] parameters are now completed automatically.
2016-09-25 16:05:22 +02:00
Dominik Picheta
519aa16b67
Fixes asyncmacro compilation in tests.
2016-09-19 21:00:54 +02:00
Dominik Picheta
1740619c0c
Implements {.multisync.} pragma for async and sync proc combos.
2016-09-18 18:15:20 +02:00
Dominik Picheta
75e5c87f15
Fixes #4170 .
2016-09-17 14:19:26 +02:00
Eugene Kabanov
4fa3ded9c7
async: transfer all await/async macro related code to asyncmacro.nim module. ( #4704 )
...
* Transfer all async macro related code to asyncmacro.nim.
* Make tests green.
2016-09-03 20:52:45 +02:00