{"action":"created","issue":{"url":"https://api.github.com/repos/crossbeam-rs/crossbeam/issues/135","repository_url":"https://api.github.com/repos/crossbeam-rs/crossbeam","labels_url":"https://api.github.com/repos/crossbeam-rs/crossbeam/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/crossbeam-rs/crossbeam/issues/135/comments","events_url":"https://api.github.com/repos/crossbeam-rs/crossbeam/issues/135/events","html_url":"https://github.com/crossbeam-rs/crossbeam/pull/135","id":220491149,"node_id":"MDExOlB1bGxSZXF1ZXN0MTE0OTk3NDU2","number":135,"title":"Add a slurp method to Treiber stack","user":{"login":"sstewartgallus","id":4070335,"node_id":"MDQ6VXNlcjQwNzAzMzU=","avatar_url":"https://avatars3.githubusercontent.com/u/4070335?v=4","gravatar_id":"","url":"https://api.github.com/users/sstewartgallus","html_url":"https://github.com/sstewartgallus","followers_url":"https://api.github.com/users/sstewartgallus/followers","following_url":"https://api.github.com/users/sstewartgallus/following{/other_user}","gists_url":"https://api.github.com/users/sstewartgallus/gists{/gist_id}","starred_url":"https://api.github.com/users/sstewartgallus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstewartgallus/subscriptions","organizations_url":"https://api.github.com/users/sstewartgallus/orgs","repos_url":"https://api.github.com/users/sstewartgallus/repos","events_url":"https://api.github.com/users/sstewartgallus/events{/privacy}","received_events_url":"https://api.github.com/users/sstewartgallus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-09T19:02:42Z","updated_at":"2018-07-28T20:54:25Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/crossbeam-rs/crossbeam/pulls/135","html_url":"https://github.com/crossbeam-rs/crossbeam/pull/135","diff_url":"https://github.com/crossbeam-rs/crossbeam/pull/135.diff","patch_url":"https://github.com/crossbeam-rs/crossbeam/pull/135.patch"},"body":"This is useful because it is wait-free instead of lock-free."},"comment":{"url":"https://api.github.com/repos/crossbeam-rs/crossbeam/issues/comments/408634283","html_url":"https://github.com/crossbeam-rs/crossbeam/pull/135#issuecomment-408634283","issue_url":"https://api.github.com/repos/crossbeam-rs/crossbeam/issues/135","id":408634283,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODYzNDI4Mw==","user":{"login":"stjepang","id":1303843,"node_id":"MDQ6VXNlcjEzMDM4NDM=","avatar_url":"https://avatars2.githubusercontent.com/u/1303843?v=4","gravatar_id":"","url":"https://api.github.com/users/stjepang","html_url":"https://github.com/stjepang","followers_url":"https://api.github.com/users/stjepang/followers","following_url":"https://api.github.com/users/stjepang/following{/other_user}","gists_url":"https://api.github.com/users/stjepang/gists{/gist_id}","starred_url":"https://api.github.com/users/stjepang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stjepang/subscriptions","organizations_url":"https://api.github.com/users/stjepang/orgs","repos_url":"https://api.github.com/users/stjepang/repos","events_url":"https://api.github.com/users/stjepang/events{/privacy}","received_events_url":"https://api.github.com/users/stjepang/received_events","type":"User","site_admin":false},"created_at":"2018-07-28T20:54:25Z","updated_at":"2018-07-28T20:54:25Z","author_association":"MEMBER","body":"This is an old PR, but here's a quick suggestion for several methods we could add to `TreiberStack`:\r\n\r\n```rust\r\nfn clear(&self) -> TreiberStack<T>;\r\nfn into_iter(self) -> IntoIter<T>;\r\nfn push_batch<I: IntoIterator<Item = T>>(&self, iter: I);\r\n```\r\n\r\nUsing these methods, one can move all elements from stack `a` to `b` with:\r\n\r\n```rust\r\nb.push_batch(a.clear())\r\n```\r\n\r\n(method names are bikesheddable)"}}
{"actor":{"display_login":"stjepang"}}