Skip to content

Commit

Permalink
changed directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
beesperester committed Mar 3, 2016
1 parent 4ac9e5e commit 81a1cc3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
24 changes: 0 additions & 24 deletions promises/promises.py → promises.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,9 @@
import logging
import json

logging.basicConfig(level=logging.DEBUG)

logging.getLogger('requests').setLevel(logging.WARNING)

from threading import Thread
from threading import Event

class StoppableThread(Thread):
"""Thread class with a stop() method. The thread itself has to check
regularly for the stopped() condition."""

def __init__(self, group = None, target = None, *args, **kwargs):
super(StoppableThread, self).__init__()
self._stop = threading.Event()
self._target = target
self._args = args

def run(self):
if not self.isStopped():
pass

def stop(self):
self._stop.set()

def isStopped(self):
return self._stop.isSet()

class Promise(object):

def __init__(self, resolver = None):
Expand Down
1 change: 0 additions & 1 deletion promises/__init__.py

This file was deleted.

0 comments on commit 81a1cc3

Please sign in to comment.