-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds
Threads.@spawncall
, which evaluates arguments immediately
This acts more like a "parallel function call", where the arguments are evaluated immediately, in the current thread, and the function is then invoked in any available thread with the stored argument values. This prevents variables being "boxed" in order to capture them in the closure. Fix at-spawncall to work w/ kwargs; add unit tests Rough implementation of `$`-interpolation in at-spawn Update spawncall tests to exercise the interpolation Fix my basic "lift $" function for $ inside :() Add string-interp test Escape the `$` reference in at-spawn docstring Oops, remove spurious "end" at end of file Factor out `$`-lifting; share b/w `@async` & `@spawn`
- Loading branch information
Showing
3 changed files
with
70 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters