<commit_before>use futures::channel::oneshot;

///
/// The queue resumer is used to resume a queue that was suspended using the `suspend()` function in the scheduler
///
pub struct QueueResumer {
    pub (super) resume: oneshot::Sender<()>
}

impl QueueResumer {
    ///
    /// Resumes a suspended queue
    ///
    pub fn resume(mut self) {
        // Send to the channel
        self.resume.send(()).ok();
    }
}<commit_msg>This does not need to be mut<commit_after>use futures::channel::oneshot;

///
/// The queue resumer is used to resume a queue that was suspended using the `suspend()` function in the scheduler
///
pub struct QueueResumer {
    pub (super) resume: oneshot::Sender<()>
}

impl QueueResumer {
    ///
    /// Resumes a suspended queue
    ///
    pub fn resume(self) {
        // Send to the channel
        self.resume.send(()).ok();
    }
}
{'fraction_non_alphanumeric': 0.13610149942329874, 'fraction_numerical': 0.0, 'mean_word_length': 2.5284552845528454, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3197798', 'n_tokens_mistral': 262, 'n_tokens_neox': 260, 'n_words': 91}