def async_task(func):
    """
    Used as a convenience decorator to be able to declare async_tasks for a TaskSet 
    inline in the class. Example::
    
        class ForumPage(TaskSet):
            @async_task
            def read_thread(self):
                pass
    """
    func.async_task = True
    return func
