(
        self,
        func: Callable[..., Awaitable[R]],
        args: Sequence[Any],
        kwargs: Dict[str, Any],
    )
return task_id
Add a new work item to the outgoing queue.

        :meta private:
Add a new work item to the outgoing queue.
Add a new work item to the outgoing queue .
def queue_work(
        self,
        func: Callable[..., Awaitable[R]],
        args: Sequence[Any],
        kwargs: Dict[str, Any],
    ) -> TaskID:
        """
        Add a new work item to the outgoing queue.

        :meta private:
        """
        self.last_id += 1
        task_id = TaskID(self.last_id)

        qid = self.scheduler.schedule_task(task_id, func, args, kwargs)
        tx, _ = self.queues[qid]
        tx.put_nowait((task_id, func, args, kwargs))
        return task_id
def queue_work ( self , func : Callable [ ... , Awaitable [ R ] ] , args : Sequence [ Any ] , kwargs : Dict [ str , Any ] , ) -> TaskID : self . last_id += 1 task_id = TaskID ( self . last_id ) qid = self . scheduler . schedule_task ( task_id , func , args , kwargs ) tx , _ = self . queues [ qid ] tx . put_nowait ( ( task_id , func , args , kwargs ) ) return task_id