aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-06-06 21:07:53 -0700
committerFuwn <[email protected]>2021-06-06 21:07:53 -0700
commit4614c3d0d6a5017f881d9cedddbd4b97cd80d2a0 (patch)
treec7927a56bae48a85020fa0ac4ccdf37976c783fe
parentrefactor(whirl_server): un-publicize distributor and hub structs (diff)
downloadwhirl-4614c3d0d6a5017f881d9cedddbd4b97cd80d2a0.tar.xz
whirl-4614c3d0d6a5017f881d9cedddbd4b97cd80d2a0.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.