Skip to content

Commit

Permalink
Update QThreadExecutor to implement Executor ABC
Browse files Browse the repository at this point in the history
`QThreadExecutor` now inherits from the `concurrent.futures.Executor`
abstract class. See harvimt#102
  • Loading branch information
henry232323 committed Feb 26, 2019
1 parent 7a3c443 commit c71f639
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quamash/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import time
import itertools
from queue import Queue
from concurrent.futures import Future
from concurrent.futures import Future, Executor as ExecutorABC
import logging
import importlib
logger = logging.getLogger('quamash')
Expand Down Expand Up @@ -102,7 +102,7 @@ def wait(self):


@with_logger
class QThreadExecutor:
class QThreadExecutor(ExecutorABC):

"""
ThreadExecutor that produces QThreads.
Expand Down

0 comments on commit c71f639

Please sign in to comment.