lib/rbfs/futures.rb in rbfs-0.0.3 vs lib/rbfs/futures.rb in rbfs-0.0.4

- old
+ new

@@ -1,6 +1,6 @@ module Rbfs - class Future < BasicObject + class Future def initialize(&callable) @thread ||= ::Thread.new { callable.call } end def value