Created
January 23, 2017 21:49
-
-
Save m-x-k/d2fef9cfc527a9b5156a773ea5059295 to your computer and use it in GitHub Desktop.
Reactive (Rx) python example with intervals
This file contains 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
from rx import Observable, Observer | |
Observable.interval(1000) \ | |
.map(lambda i: "{0} Mississippi".format(i))\ | |
.subscribe(lambda s: print(s)) | |
input("Press any key to quit") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment