Permalink
Browse files

nope

  • Loading branch information...
1 parent a93fe0a commit 1ede16b349291f830b6c83ffeb06e47b5f09cedd @daveray committed Oct 9, 2011
Showing with 0 additions and 34 deletions.
  1. +0 −34 test.rb
View
@@ -1,34 +0,0 @@
-require 'rubygems'
-require 'familiar'
-
-clj = Familiar
-clj.fn(lambda {|x,y| puts "HERE!!! #{x + y}"}).invoke(5, 6)
-f = clj.fn(lambda {|x| x + 1 })
-a = clj.atom(0)
-a.swap(f)
-a.swap! do |v|
- v + 1
-end
-
-(1..10).each do |i|
- clj.future do
- (1..1000).each do |j|
- a.reset!(a.deref + 1)
- a.swap! do |v|
- v + 1
- end
- a.swap(f)
- end
- puts "#{i} done!"
- end
-end
-Java::java.lang.Thread.sleep 1000
-clj.print a
-
-y = clj.ref("This is a value")
-clj.dosync do
- puts "HERE I AM IN DOSYNC"
- y.set "A new value"
-end
-clj.print y
-

0 comments on commit 1ede16b

Please sign in to comment.