3 releases (stable)
1.1.0 | Oct 18, 2021 |
---|---|
1.0.0 | Oct 11, 2021 |
0.1.0 | Oct 6, 2019 |
#411 in #future
9KB
124 lines
either-future
EitherFuture
is a no_std
implementation of Future<Output = Either<Left, Right>
for Either<LeftFuture, RightFuture>
.
It is both implemented for futures::Future
(0.1) and core::future::Future
.
The minimum supported rust version (MSRV) is 1.15.0 if default features are disabled and only futures01
is enabled.
See the different features for their respecitive MSRV.
Features
futures01
: Implementfutures::Future
with version 0.1 of thefutures
library- MSRV: 1.15.0 (MSRV of
futures
0.1
)
- MSRV: 1.15.0 (MSRV of
futures03
: Implement Conversions to and fromfutures_util::future::Either
- MSRV: 1.41.0 (minimum supported version by
futures_util
0.3
)
- MSRV: 1.41.0 (minimum supported version by
std_future
: Implementcore::future::Future
, enabled by default- MSRV: 1.36.0 (where
core::future::Future
was introduced to the standard library)
- MSRV: 1.36.0 (where
lib.rs
:
EitherFuture
is a no_std
implementation of Future<Output = Either<Left, Right>>
for [Either<LeftFuture, RightFuture>
].
It is both implemented for futures::Future
(0.1) and core::future::Future
.
The minimum supported rust version (MSRV) is 1.15.0 if default features are disabled and only futures01
is enabled.
See the different features for their respecitive MSRV.
Features
futures01
: Implementfutures::Future
with version 0.1 of thefutures
library- MSRV: 1.15.0 (MSRV of
futures
0.1
)
- MSRV: 1.15.0 (MSRV of
futures03
: Implement Conversions to and fromfutures_util::future::Either
- MSRV: 1.41.0 (MSRV of [futures_util
]
0.3`)
- MSRV: 1.41.0 (MSRV of [futures_util
std_future
: Implementcore::future::Future
, enabled by default- MSRV: 1.36.0 (where
core::future::Future
was introduced to the standard library)
- MSRV: 1.36.0 (where
Dependencies
~225KB