introduce capture macro (#12712)
capture works for more cases than `closureScope`.
This commit is contained in:
parent
65fd95bf85
commit
56cf3403b4
3 changed files with 41 additions and 0 deletions
|
|
@ -42,6 +42,9 @@
|
|||
`sorted` does.
|
||||
- Added `sugar.collect` that does comprehension for seq/set/table collections.
|
||||
|
||||
- Added `sugar.capture` for capturing some local loop variables when creating a closure.
|
||||
This is an enhanced version of `closureScope`.
|
||||
|
||||
## Library changes
|
||||
|
||||
- `asyncdispatch.drain` now properly takes into account `selector.hasPendingOperations`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue