Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

Website copyedit #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Website copyedit #82

wants to merge 1 commit into from

Conversation

StephenBarlow
Copy link

Please review to ensure technical accuracy is maintained. Thanks!

subscribers have been called.</p>
<p>The bus calls every method that subscribes to events of the argument's type, passing along the
argument itself. Note that this is a synchronous action—when program execution continues, it's
guaranteed that all subscribing methods have been called.</p>
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to add a note here before I forget. Something like:

Note: If you post an event from within a subscribe method the events will not be delivered synchronously. They will be enqueued for after the current event event's delivery has completed.

subscribers have been called.</p>
<p>The bus calls every method that subscribes to events of the argument's type, passing along the
argument itself. In most cases, this is a synchronous action—when program execution continues, it's
guaranteed that all subscribing methods have been called. This is <em>not</em> a synchronous
Copy link
Author

Choose a reason for hiding this comment

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

@JakeWharton I added language explaining non-synchronous situations. Am I correct in that post isn't synchronous if it's called during the execution of any other bus method, or is it just during another post()?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I will have to double-check today. But I think you are correct in that it happens for all methods.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants