Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Make registered subscription callbacks tied to the reactor instance. #125

Merged
merged 1 commit into from
Jun 18, 2015
Merged

Make registered subscription callbacks tied to the reactor instance. #125

merged 1 commit into from
Jun 18, 2015

Conversation

luk
Copy link

@luk luk commented Jan 23, 2015

Hi,
I noticed that the callbacks variable of the SubscriptionsReactor is tied to the class and not to the instance and thus introduces a global state. By making the callbacks an instance variable it is easier for the user to manage callback registering code.

This makes it easier for the user to decide, if the subscription reactor
and thus the registered callbacks should be global (by creating the
reactor in a module) and where the callbacks should be added.
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

heatonjb added a commit that referenced this pull request Jun 18, 2015
Make registered subscription callbacks tied to the reactor instance.
@heatonjb heatonjb merged commit 7fe07db into facebookarchive:master Jun 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants