Last active
April 7, 2017 21:50
-
-
Save couzic/846da33042b4c4b627b54862361b80ca to your computer and use it in GitHub Desktop.
Temporal Transparency - Counter Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Observable} from 'rxjs' | |
| let count = 0 | |
| export const counter = { | |
| increment() { | |
| ++count | |
| } | |
| getCount(): Observable<number> { | |
| return Observable.of(count) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment