lib/carbon/emission_estimate/response.rb in carbon-0.3.0 vs lib/carbon/emission_estimate/response.rb in carbon-1.0.0

- old
+ new

@@ -41,10 +41,10 @@ end def perform # :nodoc: response = nil if parent.timeout - ::SystemTimer.timeout_after(parent.timeout) do + Timeout.timeout(parent.timeout) do response = perform_request end else response = perform_request end