Created
January 23, 2013 07:08
-
-
Save thomaslee/4602749 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# | |
# Compile it ... | |
# | |
var mod = compile(...); | |
# | |
# Pin it to the current GC (using something like the builtin module hash) | |
# | |
register("mymod", mod); | |
# | |
# Use it. | |
# | |
var t = spawn some_task(mod.some_func); | |
t.join(); | |
# | |
# So long, mymod. | |
# | |
unregister("mymod"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment