Last active
September 1, 2018 14:29
-
-
Save JSpiner/0c8de20b3531ad8c1186da13d250e726 to your computer and use it in GitHub Desktop.
dispose
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
CompositeDisposable disposable = new CompositeDisposable(); | |
disposable.add( | |
Observable.just("hi").delay(1000, TimeUnit.MILLISECONDS).subscribe(data -> System.out.println("hi")) | |
); | |
disposable.dispose(); | |
disposable.add( | |
Observable.just("hi").delay(1000, TimeUnit.MILLISECONDS).subscribe(data -> System.out.println("hi")) | |
); | |
disposable.dispose(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment