Module: Datadog::Tracing::Contrib::ConcurrentRuby::FuturePatch

Defined in:
lib/datadog/tracing/contrib/concurrent_ruby/future_patch.rb

Overview

This patches the Future - to wrap executor service using ContextCompositeExecutorService

Instance Method Summary collapse

Instance Method Details

#ns_initialize(value, opts) ⇒ Object



11
12
13
14
15
# File 'lib/datadog/tracing/contrib/concurrent_ruby/future_patch.rb', line 11

def ns_initialize(value, opts)
  super(value, opts)

  @executor = ContextCompositeExecutorService.new(@executor)
end