lib/vedeu/output/renderers.rb in vedeu-0.6.11 vs lib/vedeu/output/renderers.rb in vedeu-0.6.12

- old
+ new

@@ -5,9 +5,22 @@ module Renderers extend Enumerable extend self + def clear + threads = storage.map do |renderer| + Thread.new(renderer) do + mutex.synchronize do + renderer.clear + end + end + end + threads.each(&:join) + + '' + end + # Provides access to the list of renderers. # # @example # Vedeu.renderers #