Sha256: ab86dbad80ee543d4b9e07b24109a8f8003f892b5fab31cb893ab517b6a2f001

Contents?: true

Size: 351 Bytes

Versions: 2

Compression:

Stored size: 351 Bytes

Contents

require 'async'

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-1.0.4 examples/array_of_value_with_native_threads.rb
asynchronous-1.0.3 examples/array_of_value_with_native_threads.rb