Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Rename Handle to LocalHandle and remove Clone impl #84

Merged
1 commit merged into from Sep 10, 2018
Merged

Rename Handle to LocalHandle and remove Clone impl #84

1 commit merged into from Sep 10, 2018

Conversation

ghost
Copy link

@ghost ghost commented Sep 7, 2018

Handle is renamed to LocalHandle to more clearly indicate that it's a thread-local value (definitely not Sync).

Furthermore, the Clone impl is removed because it's not very useful and it's not obvious what it does. Assuming that it registers another handle is misleading and dangerous.

Finally, default_handle is removed because it cannot be cloned anymore, but it's not very useful function anyway. We might want to later add something like with_default_handle, but I don't see a pressing need at the moment.

Closes #71.

cc @joshlf

@ghost ghost merged commit 134f376 into crossbeam-rs:master Sep 10, 2018
@ghost ghost deleted the local-handle branch September 10, 2018 11:54
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants