Sha256: 410939de7a94ccfc0086b13ee460d1380c0a333a50ab255c29f60115f71d9a2d
Contents?: true
Size: 327 Bytes
Versions: 100
Compression:
Stored size: 327 Bytes
Contents
require 'em_test_helper' class TestDefer < Test::Unit::TestCase def test_defers n = 0 n_times = 20 EM.run { n_times.times { work_proc = proc { n += 1 } callback = proc { EM.stop if n == n_times } EM.defer work_proc, callback } } assert_equal( n, n_times ) end end
Version data entries
100 entries across 100 versions & 6 rubygems