progrium/gservice — Issue #21: you should be able to wait() on ready after service start
Author: progrium
Created: 2011-12-01 01:06:24+00:00
State: open
Labels: discuss

Currently there is no way to wait() on ready state because it's assumed the only time you have to wait for this is on start. This is why start has the default option to block_until_ready. However, it's likely a service will become unavailable (for example, a client loses its connection), so it makes sense it should drop out of ready state. Code that uses this service should then be able to block until it becomes ready again.

The simplest solution is to add a method to Service such as wait() or wait_until_ready(). However, changes to the Service interface should be done carefully.