lib/asynchronous/kernel.rb in asynchronous-2.0.0 vs lib/asynchronous/kernel.rb in asynchronous-2.1.0

- old
+ new

@@ -9,10 +9,11 @@ # var = async :parallelism do # "some awsome ruby code here!" # end # module Kernel + def async(type= :Concurrency ,&block) case type.to_s.downcase[0] # Concurrency / VM / Green when "c","v","g" begin @@ -28,6 +29,11 @@ Asynchronous::Concurrency.new(block) end end end + + def shared_memory + Asynchronous::SharedMemory + end unless method_defined? :shared_memory + end \ No newline at end of file