pub async fn init( name: &str, pool: &Pool<Postgres>, mailer: &Mailer, homeserver: impl HomeserverConnection<Error = Error> + 'static, url_builder: UrlBuilder, ) -> Result<Monitor<TokioExecutor>, Error>
Initialise the workers.
This function can fail if the database connection fails.