You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Part 2 - Sequence Basics/1. Creating a sequence.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ Output
97
97
1431443908375
98
98
```
99
99
100
-
Notice how the two subscribers, 1 second apart, see the same time. That is because the value for the time aquired once, when the observable is created. What you want is for the time to be aquired when a subscriber asks for it.
100
+
Notice how the two subscribers, 1 second apart, see the same time. That is because the value for the time is aquired once: when execution reaches `just`. What you want is for the time to be aquired when a subscriber asks for it by subscribing. `defer` takes a function that will executed to create the observable. The function will be executed for every subscription.
0 commit comments