Created
April 21, 2015 10:45
-
-
Save huyderman/6c50dfde4c5cc611b023 to your computer and use it in GitHub Desktop.
Revisions
-
huyderman created this gist
Apr 21, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ require 'logger' logger = Logger.new STDOUT function = -> { logger.info "Something that takes a while..." } # fork is not portable if Process.respond_to?(:fork) Process.detach fork(&function) else function end