liminal-server 0.24.9

Standalone server for the liminal messaging bus
Documentation
use super::Fixture;
use crate::server::runtime::runtime_links::{ConfiguredLinks, shutdown};

impl Drop for Fixture {
    fn drop(&mut self) {
        let stopped = shutdown(
            &self.supervisor,
            std::time::Duration::ZERO,
            || Ok(()),
            (&mut ConfiguredLinks::default(), || self.sink.drain()),
        );
        if let Err(error) = stopped {
            eprintln!("mount fixture shutdown failed: {error}");
            assert!(
                std::thread::panicking(),
                "mount fixture shutdown failed: {error}"
            );
        }
    }
}