Sha256: 2bc612baa4eefe984f00ee4ca39033a539a4cf1563f56beeed4f915cc5fa5eda
Contents?: true
Size: 356 Bytes
Versions: 12
Compression:
Stored size: 356 Bytes
Contents
require File.expand_path('spec/spec_helper') Parallel::Worker.class_eval do alias_method :work_without_kill, :work def work(*args) Process.kill("SIGKILL", pid) sleep 0.5 work_without_kill(*args) end end begin Parallel.map([1,2,3]) do |x, i| Process.kill("SIGKILL", Process.pid) end rescue Parallel::DeadWorker puts "DEAD" end
Version data entries
12 entries across 12 versions & 1 rubygems