lib/asynchronous/kernel.rb in asynchronous-1.0.2 vs lib/asynchronous/kernel.rb in asynchronous-1.0.3

- old
+ new

@@ -10,12 +10,11 @@ # "some awsome ruby code here!" # end # module Kernel def async(type= :Concurrency ,&block) - type= type.to_s - case type.downcase[0] + case type.to_s.downcase[0] # Concurrency / VM / Green when "c","v","g" begin Asynchronous::Concurrency.new(block) end @@ -23,10 +22,12 @@ when "p","o","n" begin Asynchronous::Parallelism.new(block) end else - nil + begin + Asynchronous::Concurrency.new(block) + end end end end \ No newline at end of file