module Byebug::Helpers::EvalHelper

def in_new_thread


returns the new thread's result.
Runs the given block in a new thread, waits for it to finish and
def in_new_thread
  res = nil
  Thread.new { res = yield }.join
  res
end