use std::sync::Arc;
use super::AssignedConsumerEventSignal;
pub(crate) struct AssignedConsumerEventTicket {
signal: Arc<AssignedConsumerEventSignal>,
}
impl AssignedConsumerEventTicket {
pub(crate) const fn new(signal: Arc<AssignedConsumerEventSignal>) -> Self {
Self { signal }
}
pub(crate) fn publish(self) {
self.signal.publish();
}
pub(crate) fn restore(self) {
self.signal.restore_notification();
}
}