Builds a Server
into a bracketed stream.
Builds a Server
into a bracketed stream. The server is shut
down when the stream is complete. Shutdown is as follows:
1. We request an orderly shutdown, allowing preexisting calls to continue without accepting new calls. 2. We block for up to 30 seconds on termination, using the blocking context 3. If the server is not yet terminated, we trigger a forceful shutdown
For different tradeoffs in shutdown behavior, see {{streamWithShutdown}}.
Builds a Server
into a bracketed stream.
Builds a Server
into a bracketed stream. The server is shut
down when the stream is complete.
Determines the behavior of the cleanup of the server, with respect to forceful vs. graceful shutdown and how to poll or block for termination.