pub fn spawn_try_task(
    task: impl Future<Output = Result<(), LemmyError>> + Send + 'static
)
Expand description

tokio::spawn, but accepts a future that may fail and also

  • logs errors
  • attaches the spawned task to the tracing span of the caller for better logging