You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The StreamExt::collect in this crate (with unstable feature-flag) converts a Send stream into future that is not Send anymore. On the other hand, futures::StreamExt seems to preserve this auto trait. This is not a mission-critical issue, but thought I'll bring it to your attention anyway.
Test code to reproduce this, that yields a compilation error:
#[async_std::test]asyncfntest_send(){fntest_send_trait<T:Send>(_:&T){}let stream = futures::stream::pending::<()>();test_send_trait(&stream);use async_std::prelude::StreamExt;let fut = stream.collect::<Vec<_>>();// This line triggers a compilation errortest_send_trait(&fut);}
Tested on 1.4.0
The text was updated successfully, but these errors were encountered:
Hi,
The
StreamExt::collect
in this crate (withunstable
feature-flag) converts aSend
stream into future that is notSend
anymore. On the other hand,futures::StreamExt
seems to preserve this auto trait. This is not a mission-critical issue, but thought I'll bring it to your attention anyway.Test code to reproduce this, that yields a compilation error:
Tested on 1.4.0
The text was updated successfully, but these errors were encountered: