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

- old
+ new

@@ -12,14 +12,16 @@ # module Kernel def async(type= :Concurrency ,&block) type= type.to_s case type.downcase[0] - when "c" + # Concurrency / VM / Green + when "c","v","g" begin Asynchronous::Concurrency.new(block) end - when "p" + # Parallelism / OS / Native + when "p","o","n" begin Asynchronous::Parallelism.new(block) end else nil \ No newline at end of file