18 lines
345 B
Ruby
18 lines
345 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Released under the MIT License.
|
|
# Copyright, 2022, by Samuel Williams.
|
|
|
|
require_relative "../../../async/barrier"
|
|
require "traces/provider"
|
|
|
|
Traces::Provider(Async::Barrier) do
|
|
def wait
|
|
attributes = {
|
|
"size" => self.size
|
|
}
|
|
|
|
Traces.trace("async.barrier.wait", attributes: attributes) {super}
|
|
end
|
|
end
|