Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
as an alternative to status-im/nim-stew#134, this PR provides an accidental workaround to the underlying issue, which is that macros are generally unable to rewrite `template` contents since the macro rewriting happens before template expansion. splitting up `result` assignment and `return` allows binding to the injected `result` and `return` without argument ends up being "implicitly" compatible with the way `async` code is turned into a closure iterator.
- Loading branch information