highfive/jobs.py
def cancel(self):
        """
        Cancels the job set. The job set is immediately finished, and all
        queued jobs are discarded.
        """

        if self._active_jobs == 0:
            return

        self._jobs = iter(())
        self._on_deck = None
        self._return_queue.clear()
        self._active_jobs = 0

        self._done()
def cancel(self):
        """
        Cancels the job set. The job set is immediately finished, and all
        queued jobs are discarded.
        """

        if self._active_jobs == 0:
            return

        self._jobs = iter(())
        self._on_deck = None
        self._return_queue.clear()
        self._active_jobs = 0

        self._done()
def cancel ( self ) : if self . _active_jobs == 0 : return self . _jobs = iter ( ( ) ) self . _on_deck = None self . _return_queue . clear ( ) self . _active_jobs = 0 self . _done ( )
Cancels the job set. The job set is immediately finished, and all
        queued jobs are discarded.
Cancels the job set . The job set is immediately finished and all queued jobs are discarded .