Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Commit

Permalink
Thunk Process creation through fun_shim
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Arcieri committed Apr 26, 2009
1 parent a0c18e3 commit 966b7ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/builtins/Process.re
Expand Up @@ -9,13 +9,13 @@ module Process
# Process#spawn
# Create a new process
def spawn(&block)
proc_lib::spawn(block)
proc_lib::spawn(fun_shim::thunk(block, 0))
end

# Process#spawn_link
# Create a new process and links it to the current one
def spawn_link(&block)
proc_lib::spawn_link(block)
proc_lib::spawn_link(fun_shim::thunk(block, 0))
end

# Process#to_s
Expand Down

0 comments on commit 966b7ac

Please sign in to comment.