Skip to content

Commit 2a7d42a

Browse files
committed
document terminate function
1 parent 1ab327c commit 2a7d42a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,11 @@ pub fn pylon_version() -> PylonVersion {
272272
}
273273
}
274274

275+
/// Terminate the Pylon library.
276+
///
277+
/// You should prefer dropping the [Pylon] instance instead. This is unsafe
278+
/// because the API cannot guarantee the Pylon library has been instantiated
279+
/// exactly once and will not be terminated again.
275280
pub unsafe fn terminate(shutdown_logging: bool) {
276281
ffi::PylonTerminate(shutdown_logging);
277282
}

0 commit comments

Comments
 (0)