Skip to content

Conversation

@leoyvens
Copy link
Contributor

@leoyvens leoyvens commented Mar 28, 2017

Part of issue #341 (fixes it?). As can be seen in the wait methods this prevents one Arc clone for every polling after the first one. Did not benchmark but seems like a nice performance optimization. However this makes the syntax around polling complicated because one does not simply cast &Arc<T> to &Arc<Trait>.

Thanks @stephaneyfx for helping me with the trait object magic in IRC.

@alexcrichton
Copy link
Member

Looks great! This is a breaking change though so we'll hold off until 0.2

@alexcrichton
Copy link
Member

I think it's actually looking like we're going to deprecate these functions in #436, so I'm going to close this.

@alexcrichton
Copy link
Member

(they'll just be removed for 0.2 anyway)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants