Connected(Bridge<'a>),
/// Access to the bridge is being exclusively acquired
- /// (e.g. during `BridgeState::with`).
+ /// (e.g., during `BridgeState::with`).
InUse,
}
/// The state will be restored after `f` exits, even
/// by panic, including modifications made to it by `f`.
///
- /// NB: while `f` is running, the thread-local state
+ /// N.B., while `f` is running, the thread-local state
/// is `BridgeState::InUse`.
fn with<R>(f: impl FnOnce(&mut BridgeState) -> R) -> R {
BRIDGE_STATE.with(|state| {
/// which may be using a different `proc_macro` from the one
/// used by the server, but can be interacted with compatibly.
///
-/// NB: `F` must have FFI-friendly memory layout (e.g. a pointer).
+/// N.B., `F` must have FFI-friendly memory layout (e.g., a pointer).
/// The call ABI of function pointers used for `F` doesn't
/// need to match between server and client, since it's only
/// passed between them and (eventually) called by the client.