use crate::bridge::ffi;
use std::marker::PhantomData;
#[derive(Debug)]
pub struct RunLoopHandle {
_not_send: PhantomData<*mut ()>,
}
impl RunLoopHandle {
#[must_use]
pub fn current() -> Self {
Self { _not_send: PhantomData }
}
#[allow(clippy::unused_self, reason = "method syntax ties ticking to a run-loop handle")]
pub fn tick(&self) {
ffi::currentThreadRunLoopTick();
}
}