Skip to content

Commit 8f035f0

Browse files
committed
Make a couple of tweaks to Event Queue.
1 parent f3bd541 commit 8f035f0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

book/event-queue.markdown

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ handle that request. To fix that, we'll decouple *receiving* a request from
227227
A **queue** stores a series of **notifications or requests** in first-in,
228228
first-out order. Sending a notification **enqueues the request and returns**.
229229
The request processor then **processes items from the queue** at a later time.
230-
231230
Requests can be **handled directly** or **routed to interested parties**. This
232231
**decouples the sender from the receiver** both **statically** and **in time**.
233232

@@ -748,12 +747,12 @@ and "fan-out" for one-to-many.
748747
method, any part of the codebase can add a request to the queue. "Global" or
749748
"central" event buses work like this too.
750749

751-
* **You have to be more careful of cycles.** Since anything can
750+
* *You have to be more careful of cycles.* Since anything can
752751
potentially put something onto the queue, it's easier to accidentally
753752
enqueue something in the middle of handling an event. If you aren't
754753
careful, that may trigger a feedback loop.
755754

756-
* **You'll likely want some reference to the sender in the event itself.**
755+
* *You'll likely want some reference to the sender in the event itself.*
757756
When a listener gets an event, it doesn't know who sent it, since it
758757
could be anyone. If that's something they need to know, you'll want to
759758
pack that into the event object so that the listener can use it.

0 commit comments

Comments
 (0)