mas_tasks

Function init

source
pub async fn init(
    pool: &Pool<Postgres>,
    mailer: &Mailer,
    homeserver: impl HomeserverConnection<Error = Error> + 'static,
    url_builder: UrlBuilder,
    cancellation_token: CancellationToken,
    task_tracker: &TaskTracker,
) -> Result<(), QueueRunnerError>
Expand description

Initialise the workers.

ยงErrors

This function can fail if the database connection fails.