Dominik Picheta
6ee6f252d4
Rip out the try transformation in the async macro.
2018-06-06 19:18:24 +03:00
Zahary Karadjov
10142e4a80
Fix some usages of typedesc in async procs
...
This also fixes a compilation error in modules, based only on the
new async module (i.e. not importing the full asyncdispatch)
2018-04-13 13:31:55 +03:00
Arne Döring
84982e5e17
fix deprecation warnings in asyncmacro and htmlgen ( #7573 )
...
* fix deprecation warnings in asyncmacro and htmlgen
* removed todo
2018-04-12 13:54:49 +02:00
Dominik Picheta
2c905f5e81
Merge pull request #6962 from nim-lang/fixes/6100
...
Fixes #6100 .
2018-01-10 23:11:26 +00:00
Araq
6cf2fcaaf1
optimized friendly stack traces
2017-12-28 09:21:22 +01:00
Dominik Picheta
3a790c9c72
Rename cb0 to asyncProcName_continue + other improvements to async tracebacks.
2017-12-28 09:21:22 +01:00
Dominik Picheta
52cc925e0e
Fixes #6100 .
2017-12-27 22:37:11 +00:00
Anatoly Galiulin
d02606064c
Remove unneeded comment #6708
2017-11-13 15:16:44 +07:00
Anatoly Galiulin
4812b0f0c5
Fix parameter types splitting in multisync macro #6708
2017-11-09 11:49:10 +07:00
Andreas Rumpf
d52a1061b3
work in progress: new implementation for 'a[^1]'
2017-10-29 19:46:17 +01:00
Andreas Rumpf
7db5bad016
revert accidentical asyncmacro change
2017-09-21 21:05:58 +02:00
Andreas Rumpf
a04c7d8b38
introduce OnHeapNew and rename TLoc.s to TLoc.storage
2017-09-21 11:38:04 +02:00
Andreas Rumpf
b69598a64a
workaround so doc2 asynchttpserver works again
2017-07-26 08:51:49 +02:00
Yuriy Glukhov
4846ce0f41
Suppress "pointless conversion" hint ( #6103 )
2017-07-15 14:34:27 +02:00
Yuriy Glukhov
bdf6f59c6d
Fixes #5738 ( #6059 )
2017-07-15 08:50:41 +02:00
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