sofie-db 0.1.0

The handler model (inputs, events, replies), aggregates, read models, the query builder, the unit of work, migrations, the worker and the database seam.
Documentation
1
2
3
4
5
6
7
8
9
use super::{JobContext, Worker};
use crate::{Call, Trigger, erase};

impl Worker {
    #[must_use]
    pub fn job<Args: 'static>(self, name: &'static str, job: impl Call<JobContext, Args>) -> Self {
        self.register(name, Trigger::Queued, erase(job))
    }
}