(
        self, task_id: TaskID, value: Any, tb: Optional[TracebackStr]
    )
Mark work items as completed.

        :meta private:
Mark work items as completed.
Mark work items as completed .
def finish_work(
        self, task_id: TaskID, value: Any, tb: Optional[TracebackStr]
    ) -> None:
        """
        Mark work items as completed.

        :meta private:
        """
        self._results[task_id] = value, tb
        self.scheduler.complete_task(task_id)
def finish_work ( self , task_id : TaskID , value : Any , tb : Optional [ TracebackStr ] ) -> None : self . _results [ task_id ] = value , tb self . scheduler . complete_task ( task_id )