Sha256: 8525b0ccd0cc0a2a7bb369e51aa60c0e0a8d38c388093228857a16ac55ef35a7

Contents?: true

Size: 432 Bytes

Versions: 3

Compression:

Stored size: 432 Bytes

Contents

# Require Gemfile gems
require_relative "../lib/procemon"

calculation = async {

  sleep 10
  4 * 4
}

puts "hello world"

calculation += 1

puts calculation

#>--------------------------------------------------


test1 = async {

  sleep 8
  hello= 14
  sup= "the world is yours"

  sup

}

test2 = async {
  sleep(4)
  "world"
}

start_time= Time.now

asd= test1
puts asd

puts test1.value == test2.value
puts Time.now-start_time

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
procemon-0.3.4 examples/simple_async_processing.rb
procemon-0.3.3 examples/simple_async_processing.rb
procemon-0.3.2 examples/simple async processing.rb