Crates.io | optional-future |
lib.rs | optional-future |
version | 0.1.0 |
source | src |
created_at | 2024-07-01 04:34:31.192429 |
updated_at | 2024-07-01 04:34:31.192429 |
description | Allows an Option |
homepage | |
repository | https://github.com/gamepoet/optional-future |
max_upload_size | |
id | 1288378 |
size | 6,249 |
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.
Add this to your Cargo.toml
:
[dependencies]
optional-future = "0.1"
Licensed under the MIT License.