aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-06-06 21:07:53 +0000
committerFuwn <[email protected]>2021-06-06 21:07:53 +0000
commit4ac49a4dfcb8704a9df80bd3ec10bb625a62ad29 (patch)
tree8e85f2fa605cdd85598da51fe5c53a80b66c58a8
parentrefactor(whirl_server): un-publicize distributor and hub structs (diff)
downloadwhirl-4ac49a4dfcb8704a9df80bd3ec10bb625a62ad29.tar.xz
whirl-4ac49a4dfcb8704a9df80bd3ec10bb625a62ad29.zip
docs(whirl_api): document public functions
-rw-r--r--crates/whirl_api/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/whirl_api/src/lib.rs b/crates/whirl_api/src/lib.rs
index e6660a7..882beeb 100644
--- a/crates/whirl_api/src/lib.rs
+++ b/crates/whirl_api/src/lib.rs
@@ -64,6 +64,9 @@ impl Api {
}
}
+/// Spawn and return a thread handle for the API -- which
+/// should be -- instantiated by the `whirl_api` crate.
+///
/// # Panics
/// - A panic may occur if the mpsc sender is unable to send a clone of the
/// server.