Class: LaunchDarkly::SynchronousMessage
- Inherits:
-
Object
- Object
- LaunchDarkly::SynchronousMessage
show all
- Defined in:
- lib/ldclient-rb/events.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of SynchronousMessage.
70
71
72
|
# File 'lib/ldclient-rb/events.rb', line 70
def initialize
@reply = Concurrent::Semaphore.new(0)
end
|
Instance Method Details
#completed ⇒ Object
74
75
76
|
# File 'lib/ldclient-rb/events.rb', line 74
def completed
@reply.release
end
|
#wait_for_completion ⇒ Object
78
79
80
|
# File 'lib/ldclient-rb/events.rb', line 78
def wait_for_completion
@reply.acquire
end
|