Function mas_tasks::init

source ·
pub async fn init(
    name: &str,
    pool: &Pool<Postgres>,
    mailer: &Mailer,
    homeserver: impl HomeserverConnection<Error = Error> + 'static,
    url_builder: UrlBuilder,
) -> Result<Monitor<TokioExecutor>, Error>
Expand description

Initialise the workers.

§Errors

This function can fail if the database connection fails.