1 unstable release
0.1.0 | Jul 1, 2024 |
---|
#10 in #wrapped
6KB
95 lines
optional-future
is a library that allows a future that is only sometimes valid
to be used in a select context. When it is None
it will always be pending and
thus never resolve, but when it is Some
then then it will resolve when the
inner future resolves.
Usage
Add this to your Cargo.toml
:
[dependencies]
optional-future = "0.1"
License
Licensed under the MIT License.
Dependencies
~72KB