Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api_server: add option to start api server in background
The existing serve function returns a future that must be awaited on for the server to run. This causes the caller to block and does not allow the server to be halted unless the process is terminated. This is not ideal when using the server as a crate (or in a test). Instead, add a function that returns a server which can then be awaited on or run in the background. Signed-off-by: Tobin Feldman-Fitzthum <[email protected]>
- Loading branch information