Sha256: 3504951cdb6e8bb02f592557da1fefbf76caf44c6bf688eddd2de5bb1899d6d6

Contents?: true

Size: 192 Bytes

Versions: 2

Compression:

Stored size: 192 Bytes

Contents

require 'test_helper'

class FutureTest < Test::Unit::TestCase
  def test_future
    promise = Dharma.future() { true }
    
    assert promise.result

    assert promise.completed?
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dharma-0.9.1 test/future_test.rb
dharma-0.9.0 test/future_test.rb