|
|
@ -1444,6 +1444,20 @@ class Server(six.with_metaclass(abc.ABCMeta)): |
|
|
|
""" |
|
|
|
""" |
|
|
|
raise NotImplementedError() |
|
|
|
raise NotImplementedError() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def wait_for_termination(self, grace=None): |
|
|
|
|
|
|
|
"""Block current thread until the server stops. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The wait will not consume computational resources during blocking, and it |
|
|
|
|
|
|
|
will block indefinitely. There are two ways to unblock: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1) Calling `stop` on the server in another thread; |
|
|
|
|
|
|
|
2) The `__del__` of the server object is invoked. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Args: |
|
|
|
|
|
|
|
grace: A duration of time in seconds or None. |
|
|
|
|
|
|
|
""" |
|
|
|
|
|
|
|
raise NotImplementedError() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################################# Functions ################################ |
|
|
|
################################# Functions ################################ |
|
|
|
|
|
|
|
|
|
|
|