Skip to content

Commit

Permalink
Fixed print statements in GettingStarted.md (#2112)
Browse files Browse the repository at this point in the history
A couple of print statements were missing. The print output should line up correctly with the code now.
  • Loading branch information
chackle authored and freak4pc committed Oct 6, 2020
1 parent 4e969fa commit 5864dee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Documentation/GettingStarted.md
Expand Up @@ -443,19 +443,28 @@ let subscription1 = counter
.subscribe(onNext: { n in
print("First \(n)")
})

print("Subscribed")

let subscription2 = counter
.subscribe(onNext: { n in
print("Second \(n)")
})

print("Subscribed")

Thread.sleep(forTimeInterval: 0.5)

subscription1.dispose()

print("Disposed")

Thread.sleep(forTimeInterval: 0.5)

subscription2.dispose()

print("Disposed")

print("Ended ----")
```

Expand Down

0 comments on commit 5864dee

Please sign in to comment.