def task(self, queue: str = '<STR_LIT>', **kwargs: Any) -> Callable:
def wrapper(f: Callable) -> Task:<EOL><INDENT>return Task(f, self, queue, **kwargs)<EOL><DEDENT>return wrapper<EOL>
Wrap functions with this decorator to convert them to *tasks*.
After wrapping, calling the function will send a message to
a queue instead of running the function.

:param queue: Queue name for the tasks.
:param kwargs: Keyword arguments will be passed to
    :class:`~kuyruk.Task` constructor.
:return: Callable :class:`~kuyruk.Task` object wrapping the original
    function.