-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allowed a custom Event
type in Pub / Sub futures.
#4643
Conversation
""" | ||
|
||
# This could be a sentinel object or None, but the sentinel object's ID | ||
# can change if the process is forked, and None has the possibility of | ||
# actually being a result. | ||
_SENTINEL = uuid.uuid4() | ||
|
||
def __init__(self): | ||
def __init__(self, event_factory=threading.Event): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
""" | ||
def __init__(self, policy): | ||
def __init__(self, policy, *args, **kwargs): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -263,7 +263,7 @@ def open(self, callback): | |||
# Create the Future that this method will return. | |||
# This future is the main thread's interface to handle exceptions, | |||
# block on the subscription, etc. | |||
self._future = Future(policy=self) | |||
self._future = Future(policy=self, event_factory=threading.Event) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
50d3abc
to
1020c5e
Compare
""" | ||
|
||
# This could be a sentinel object or None, but the sentinel object's ID | ||
# can change if the process is forked, and None has the possibility of | ||
# actually being a result. | ||
_SENTINEL = uuid.uuid4() | ||
|
||
def __init__(self): | ||
def __init__(self, completed=None): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
No description provided.