Method: Pbt::Check::Property#run_in_ractor

Defined in:
lib/pbt/check/property.rb

#run_in_ractor(val) ⇒ Ractor

Run the predicate with the generated ‘val` in a Ractor. This is used only for parallel testing with Ractors.

Parameters:

  • val (Object)

Returns:

  • (Ractor)
[View source]

49
50
51
# File 'lib/pbt/check/property.rb', line 49

def run_in_ractor(val)
  Ractor.new(val, &@predicate)
end