app.decorators

Custom decorators for the Mail List Shield application.

This module provides utility decorators used throughout the application.

Functions

asyncr(f)

Decorator to run a function asynchronously in a separate thread.

Module Contents

app.decorators.asyncr(f)[source]

Decorator to run a function asynchronously in a separate thread.

This decorator is primarily used for sending emails without blocking the main request thread.

Parameters:

f – The function to be decorated.

Returns:

A wrapper function that runs the original function in a separate thread.

Return type:

function