Class: Temporalio::Internal::Bridge::Testing::EphemeralServer
- Inherits:
-
Object
- Object
- Temporalio::Internal::Bridge::Testing::EphemeralServer
show all
- Defined in:
- lib/temporalio/internal/bridge/testing.rb
Defined Under Namespace
Classes: StartDevServerOptions
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.start_dev_server(runtime, options) ⇒ Object
27
28
29
30
31
32
33
34
|
# File 'lib/temporalio/internal/bridge/testing.rb', line 27
def self.start_dev_server(runtime, options)
queue = Queue.new
async_start_dev_server(runtime, options, queue)
result = queue.pop
raise result if result.is_a?(Exception)
result
end
|
Instance Method Details
#shutdown ⇒ Object
36
37
38
39
40
41
|
# File 'lib/temporalio/internal/bridge/testing.rb', line 36
def shutdown
queue = Queue.new
async_shutdown(queue)
result = queue.pop
raise result if result.is_a?(Exception)
end
|