class RegistryApiClient::Waiter
Public Class Methods
new()
click to toggle source
# File lib/docker_cake/registry_api_client.rb, line 40 def initialize @queue = Queue.new end
Public Instance Methods
notify(data)
click to toggle source
Notify waiting side
# File lib/docker_cake/registry_api_client.rb, line 50 def notify(data) @queue.push(data) end
wait()
click to toggle source
Waiting for someone to call notify
# File lib/docker_cake/registry_api_client.rb, line 45 def wait @queue.pop(false) end