Skip to main content

pebble/rendering/
async_init.rs

1use crate::rendering::{backend::Backend, sync::InitReceiver};
2
3/// Holds the [`InitReceiver`] while waiting for an async backend to finish
4/// initialising. Removed from the world once the backend arrives.
5pub(crate) struct PendingBackend<B: Backend> {
6    pub(crate) receiver: std::sync::Mutex<InitReceiver<B>>,
7}