File: helper.rb

package info (click to toggle)
ruby-pluggaloid 1.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 260 kB
  • sloc: ruby: 1,752; sh: 4; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 233 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
# -*- coding: utf-8 -*-

module PluggaloidTestHelper
  def eval_all_events(delayer=Delayer, &block)
    native = Thread.list
    block.() if block
    delayer.run while not(delayer.empty? and (Thread.list - native).empty?)
  end
end