Araq
861a5340fe
fixes #13519
2020-03-11 09:26:57 +01:00
narimiran
aa513d78e7
[backport] run nimpretty on async
2019-09-30 13:57:58 +02:00
Andreas Rumpf
70e8551e37
async macro: general stability improvements [bugfix] ( #11787 )
2019-07-19 16:47:38 +02:00
Araq
edbe02b4e1
newruntime: progress to make 'async' work with --newruntime
2019-07-15 10:56:55 +02:00
Andreas Rumpf
ac458448d8
make async tests green again
2019-07-11 11:09:10 +02:00
Araq
bc7733827d
make more parts of the stdlib compile with --styleCheck:error
2019-07-10 15:48:30 +02:00
Araq
55e8aefbea
newruntime: async progress
2019-07-09 20:15:57 +02:00
Araq
2c2f2de614
asyncmacro produces 'owned' types
2019-07-09 11:38:00 +02:00
Andreas Rumpf
5f515410af
newruntime for async ( #11650 )
...
* fixes overloading resolution for passing owned(Future[string]) to Future[T]
* WIP: make --newruntime work with .async
* memtracker: make it compile again
* make Nimble compile again
2019-07-05 01:42:17 +02:00
Zed
3b4952da94
Fix header inconsistencies in documentation ( #11071 )
2019-04-23 08:40:20 +02:00
LemonBoy
d7ca7fd03e
Small change in how tuples are handled in async macro
...
A small change that brings no functional change beside a flatter tree.
2019-02-04 22:16:55 +00:00
LemonBoy
792dbed57e
Restore the docstring during the .async. transform ( #10404 ) [backport]
...
Fixes #9816
2019-01-22 09:41:11 +01:00
alaviss
2a31f42d35
asyncmacro: add nnkSym support for getName() ( #9204 )
...
Fixes #9201
2018-10-09 15:53:13 +02:00
LemonBoy
2c0bfb34fd
Fix regression w/ templates defined in async proc
2018-10-03 18:25:25 +02:00
LemonBoy
75a981cf80
Skip nested procedures in .async. macro
...
Fixes #3075
2018-09-22 17:30:17 +02:00
LemonBoy
90025e242d
Minor fixes for asyncjs ( #8894 )
...
* Minor fixes for asyncjs
Mark internal procedures as used
Allow .async. for more node kinds
Make .async. work for nkStmtList
* Fix logic error in both the async macros
2018-09-07 16:42:38 +02:00
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