Sha256: 8a65ee1ee45cbbe2da2f7c2b45704157d493016931ffe2aa2faf387d00c5cf96

Contents?: true

Size: 374 Bytes

Versions: 2

Compression:

Stored size: 374 Bytes

Contents

require_relative "../lib/asynchronous"

async1= async :OS do

  1000000*5

end

async2= async :OS do

  sleep 10

  "sup" * 10000


end


async3= async :OS do

  1000000*5.0

end

# please do remember that parsing an object into
# Marshal String can take up time if you have big Strings like
# "sup" * 100000000

puts async1.value,
     async2.value[0..5],
     async3.value

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
asynchronous-2.1.0 examples/array_of_value_with_native_threads.rb
asynchronous-2.0.0 examples/array_of_value_with_native_threads.rb