Open
Description
Currently, the implementation of Future
for Either
requires that both Future
s resolve to the same type:
Lines 1127 to 1141 in af9f5fb
This limits, which kinds of Future
s can be expressed using Either
. It would be more useful to set the Output
type to Either<A::Output, B::Output>
. This is an API breaking change.
The original behaviour can be restored using the Either::into_inner
function. In case both Future
s, A
and B
have the same Output
, the into_inner
function can be used to "unwrap" the Either
:
Lines 916 to 930 in af9f5fb
Metadata
Metadata
Assignees
Labels
No labels