Skip to content
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

fix(WebWorker): Add zone support to MessageBus #4053

Closed
wants to merge 1 commit into from

Conversation

jteplitz
Copy link
Contributor

@jteplitz jteplitz commented Sep 8, 2015

No description provided.

@jteplitz jteplitz added action: review The PR is still awaiting reviews from at least one requested reviewer comp: core/webworker labels Sep 8, 2015
@@ -38,18 +40,10 @@ class MultiClientServerMessageBus implements MessageBus {
});
}

void resultReceived() {
void resultReceived(e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is customary to use _ for required but unused parameters. However, in this case, why do you need the parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It needs to have a parameter so that I can pass the function directly to onResult.listen above. Without it it won't match the argument signature. I'll change it to an underscore.


/**
* Assigns this bus to the given zone.
* Any channels which are set up to run in the zone will use this zone.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not clear what "use this zone" means. How about "Any callbacks attached to channels created from this [MessageBus] will be executed within the given [zone]"?

}

abstract class GenericMessageBusSource implements MessageBusSource {
Stream stream;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this field to be public?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it at least be read-only?

@jteplitz jteplitz force-pushed the message-bus-zone branch 2 times, most recently from ee89542 to 43ddd3b Compare September 8, 2015 20:30
/**
* Assigns this source to the given zone.
* Any channels which are set up to run in the zone will use this zone.
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use similar wording as one in MessageBus.attachToZone doc comment.

@yjbanov yjbanov added pr_state: LGTM action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 8, 2015
@jteplitz jteplitz removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Sep 8, 2015
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants