Sha256: e92ce6929acb2771e06eb1610a733a64e96f3df8fabc985755b4760e49a87b77

Contents?: true

Size: 298 Bytes

Versions: 2

Compression:

Stored size: 298 Bytes

Contents

require_relative "../lib/asynchronous"


async1= async :OS do
  1000000*5
end

async2= async :OS do

  var = ("sup" * 1000000)
  puts "the superHuge String length in the pipe is: #{var.length}"

  var
end


async3= async :OS do
  1000000*5.0
end

puts async1

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
asynchronous-3.0.1 examples/array_of_value_with_native_threads.rb
asynchronous-3.0.0.pre.pre examples/array_of_value_with_native_threads.rb