{"action":"opened","issue":{"url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/158","labels_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/158/comments","events_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/158/events","html_url":"https://github.com/ReactiveX/RxAndroid/issues/158","id":70015130,"number":158,"title":"ConcurrentModificationException when ViewObservable.clicks().take(1)","user":{"login":"shinyaohira","id":1974422,"avatar_url":"https://avatars.githubusercontent.com/u/1974422?v=3","gravatar_id":"","url":"https://api.github.com/users/shinyaohira","html_url":"https://github.com/shinyaohira","followers_url":"https://api.github.com/users/shinyaohira/followers","following_url":"https://api.github.com/users/shinyaohira/following{/other_user}","gists_url":"https://api.github.com/users/shinyaohira/gists{/gist_id}","starred_url":"https://api.github.com/users/shinyaohira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinyaohira/subscriptions","organizations_url":"https://api.github.com/users/shinyaohira/orgs","repos_url":"https://api.github.com/users/shinyaohira/repos","events_url":"https://api.github.com/users/shinyaohira/events{/privacy}","received_events_url":"https://api.github.com/users/shinyaohira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-22T03:57:33Z","updated_at":"2015-04-22T03:57:33Z","closed_at":null,"body":"I would like to do something just one time when users tap a button. Here is my code:\r\n\r\n```java\r\nViewObservable.clicks(button)\r\n                .take(1)\r\n                .subscribe(/* do something */);\r\n```\r\n\r\nbut I got ConcurrentModificationException.\r\n\r\n```\r\njava.util.ConcurrentModificationException\r\n            at java.util.ArrayList$ArrayListIterator.next(ArrayList.java:573)\r\n            at rx.android.view.OnSubscribeViewClick$CompositeOnClickListener.onClick(OnSubscribeViewClick.java:78)\r\n            at android.view.View.performClick(View.java:4780)\r\n            at android.view.View$PerformClick.run(View.java:19866)\r\n```"}}