Method: Datadog::Core::Remote::Component#barrier

Defined in:
lib/datadog/core/remote/component.rb

#barrier(_kind) ⇒ Object

If the worker is not initialized, initialize it.

Then, waits for one client sync to be executed if ‘kind` is `:once`.



82
83
84
85
# File 'lib/datadog/core/remote/component.rb', line 82

def barrier(_kind)
  start
  @barrier.wait_once
end