Skip to content

Commit

Permalink
Update fn comments
Browse files Browse the repository at this point in the history
  • Loading branch information
locka99 committed Nov 1, 2021
1 parent aa132ee commit 2f66ed4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ impl Server {
}

/// Allow the server to be run on a caller supplied runtime. If block is set, the task
/// runs to completion, otherwise, the task runs and a join handle is returned by this fn.
/// runs to completion (abort or by error), otherwise, the task is spawned and a join handle is
/// returned by the function. Spawning might be suitable if the runtime is being used for other
/// async tasks.
pub fn run_server_on_runtime<F>(
runtime: tokio::runtime::Runtime,
server_task: F,
Expand Down

0 comments on commit 2f66ed4

Please sign in to comment.