Sha256: a8e896270d5f592a4bba113dcc7e3e99465f93d12a1de5f50d105546c1cf38ff
Contents?: true
Size: 641 Bytes
Versions: 3
Compression:
Stored size: 641 Bytes
Contents
FancySpec describe: Proxies DistributingProxy with: { it: "forwards messages to each element in turn" when: { p = Proxies DistributingProxy new: [1,2,3] p is: 1 p is: 2 p is: 3 # and again p is: 1 p is: 2 p is: 3 # and once more p class is: Fixnum p inspect is: "2" p to_s is: "3" } it: "waits appropriately if all elements are currently in use" when: { p = Proxies DistributingProxy new: ["foo", "bar", "baz"] results = [] threads = (1..10) map: |i| { Thread new: { results << (i, p * 2) } } threads each: @{ join } results size is: 10 } }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fancy-0.10.0 | tests/distributing_proxy.fy |
fancy-0.9.0 | tests/distributing_proxy.fy |
fancy-0.8.0 | tests/distributing_proxy.fy |