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::map(), StreamExt::filter_map() in the futures crate accepts async functions which resolve to an <T>/Option<T>, whereas the same methods in the futures-lite crate accept normal functions which are meant to return <T>/Option<T>. (there are other similar methods as well)
I don't know if this is by design or a mistake, but since this crate is supposed to be fully compatible with the futures crate, I think these methods should be changed accordingly.
The text was updated successfully, but these errors were encountered:
aryan9600
changed the title
Accept async functions for StreamExt::filter() and others
Accept async functions for StreamExt::map() and others
Dec 15, 2021
The
StreamExt::map()
,StreamExt::filter_map()
in thefutures
crate accepts async functions which resolve to an<T>
/Option<T>
, whereas the same methods in thefutures-lite
crate accept normal functions which are meant to return<T>
/Option<T>
. (there are other similar methods as well)I don't know if this is by design or a mistake, but since this crate is supposed to be fully compatible with the
futures
crate, I think these methods should be changed accordingly.The text was updated successfully, but these errors were encountered: